This concludes the snake_case aliases for all wallet option objects or named args.
Deprecation can be done in the future, in a few releases.
This concludes the snake_case aliases for all wallet option objects or named args.
Deprecation can be done in the future, in a few releases.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline and AI policy for information on the review process.
| Type | Reviewers |
|---|---|
| ACK | Zippo76, willcl-ark |
If your review is incorrectly listed, please copy-paste <code><!--meta-tag:bot-skip--></code> into the comment that the bot should ignore.
<!--174a7506f384e20aa4161008e828411d-->
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
And use it in one test.
This does not change any behavior, but makes possible future deprecation
easier.
<details><summary>rendered schema and doc diff</summary>
diff --git a/getopenrpcinfo.full.json b/getopenrpcinfo.full.json
index ee8225f..1e3d368 100644
--- a/getopenrpcinfo.full.json
+++ b/getopenrpcinfo.full.json
@@ -11685 +11685 @@
- "minimumAmount": {
+ "minimum_amount": {
@@ -11697 +11697 @@
- "maximumAmount": {
+ "maximum_amount": {
@@ -11709 +11709 @@
- "maximumCount": {
+ "maximum_count": {
@@ -11714 +11714 @@
- "minimumSumAmount": {
+ "minimum_sum_amount": {
diff --git a/listunspent b/listunspent
index 0fe30b3..cde15ac 100644
--- a/listunspent
+++ b/listunspent
@@ -20,4 +20,4 @@ Named Arguments:
-minimumAmount (numeric or string, optional, default="0.00") Minimum value of each UTXO in BTC
-maximumAmount (numeric or string, optional, default=unlimited) Maximum value of each UTXO in BTC
-maximumCount (numeric, optional, default=unlimited) Maximum number of UTXOs
-minimumSumAmount (numeric or string, optional, default=unlimited) Minimum sum value of all UTXOs in BTC
+minimum_amount (numeric or string, optional, default="0.00") Minimum value of each UTXO in BTC
+maximum_amount (numeric or string, optional, default=unlimited) Maximum value of each UTXO in BTC
+maximum_count (numeric, optional, default=unlimited) Maximum number of UTXOs
+minimum_sum_amount (numeric or string, optional, default=unlimited) Minimum sum value of all UTXOs in BTC
@@ -60,2 +60,2 @@ Examples:
-> bitcoin-cli listunspent 6 9999999 '[]' true '{ "minimumAmount": 0.005 }'
-> curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "listunspent", "params": [6, 9999999, [] , true, { "minimumAmount": 0.005 } ]}' -H 'content-type: application/json' http://127.0.0.1:8332/
+> bitcoin-cli listunspent 6 9999999 '[]' true '{ "minimum_amount": 0.005 }'
+> curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "listunspent", "params": [6, 9999999, [] , true, { "minimum_amount": 0.005 } ]}' -H 'content-type: application/json' http://127.0.0.1:8332/
</details>
tACK facf53acf4
Tested on macOS 27.2 arm64 against master 4ef7904c39.
The modified wallet_listtransactions.py test fails on master with Unknown named parameter minimum_amount and passes with this PR.
Manually checked all four aliases, both inside query_options and via bitcoin-cli -named. Each produces the same filtering results as its camelCase counterpart. Supplying both spellings is rejected in both forms. In query_options, the error says “Do not set both.” With -named, it reports “Unknown named parameter” for the camelCase alias, consistent with the generic named-argument handling already used by existing aliases.
snake_case camelCase query_options -named both spellings
minimum_amount minimumAmount same results same rejected
maximum_amount maximumAmount same results same rejected
maximum_count maximumCount same results same rejected
minimum_sum_amount minimumSumAmount same results same rejected
Also checked fundrawtransaction with change_position and changePosition: behaviour matches master, including the error when both are supplied.
ACK facf53acf43cb392d3af72ef837a4b825ed31406