-
Notifications
You must be signed in to change notification settings - Fork 38.7k
rpc: Rename first named arg of createrawtransaction #10084
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dcousens
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
|
utACK |
|
utACK fa55853. Makes sense. As this is an API change, this needs mention in the release notes. |
|
ACK fa55853 |
Github-Pull: bitcoin#10084 Rebased-From: fa55853
|
Hmm, I suppose it's unlikely anyone is even using named args in 0.14 yet, so probably fine, but as folks start using this we should prefer to update docs over code. utACK fa55853 |
In general you are right, but in this specific case 'inputs' is a much better name for the argument. I think this slipped by in review of #8811. |
fa55853 rpc: Rename first named arg of createrawtransaction (MarcoFalke) Tree-SHA512: f2e07183f2503344e676e08fe0fd73e995d7c6fda3fc11c64116208dec8e445f0627583dfba85014129b6f2dc7e253b9d760e57e66811272db89e9ba25ce6dbc
fa55853 rpc: Rename first named arg of createrawtransaction (MarcoFalke) Tree-SHA512: f2e07183f2503344e676e08fe0fd73e995d7c6fda3fc11c64116208dec8e445f0627583dfba85014129b6f2dc7e253b9d760e57e66811272db89e9ba25ce6dbc
fa55853 rpc: Rename first named arg of createrawtransaction (MarcoFalke) Tree-SHA512: f2e07183f2503344e676e08fe0fd73e995d7c6fda3fc11c64116208dec8e445f0627583dfba85014129b6f2dc7e253b9d760e57e66811272db89e9ba25ce6dbc
fa55853 rpc: Rename first named arg of createrawtransaction (MarcoFalke) Tree-SHA512: f2e07183f2503344e676e08fe0fd73e995d7c6fda3fc11c64116208dec8e445f0627583dfba85014129b6f2dc7e253b9d760e57e66811272db89e9ba25ce6dbc
9ed1bdd [RPC] Remove obsolete and ignored 'detach' argument of stop command (random-zebra) 7d9af29 [Doc] Add RPC named arguments to release notes (random-zebra) 1582bdf [QA] Add rpc_named_arguments.py functional test (random-zebra) d87da93 rpc: Rename first named arg of createrawtransaction (random-zebra) 7ae8964 [Refactor] Sort RPC command tables alphabetically (random-zebra) da63bb8 rpc: Named argument support for pivx-cli (random-zebra) 22ee72a rpc: Named arguments for rawtransaction calls (Wladimir J. van der Laan) 3a93690 rpc: Named arguments for wallet calls (random-zebra) f137eca rpc: Named arguments for mining calls (Wladimir J. van der Laan) d524cc1 RPC: Named arguments for masternode, budget, and evo calls (random-zebra) 81de632 rpc: Named arguments for net calls (Wladimir J. van der Laan) 8e5bed7 rpc: Named arguments for misc calls (random-zebra) 4b2b980 rpc: Add 'echo' call for testing (Wladimir J. van der Laan) f8617c2 rpc: Named arguments for blockchain calls (random-zebra) a00e323 rpc: Support named arguments (Wladimir J. van der Laan) a0da903 authproxy: Add support for RPC named arguments (Wladimir J. van der Laan) Pull request description: The [JSON-RPC specification](http://www.jsonrpc.org/specification) allows either passing parameters as an Array, for positional arguments, or as an Object, for named arguments. Currently PIVX Core only supports positional arguments. This pull request adds support for named arguments, but preserves full backwards compatibility. APIs using by-name arguments are easier to extend - as arguments can be left out - and easier to use - no need to guess which argument goes where. This is especially nice in languages such as Python, which have native support for named arguments. Examples from the test: ```python h = node.help(command='getinfo') h = node.getblockhash(height=0) h = node.getblock(hash=h) ``` Backported from: - bitcoin#8811 : Add support for JSON-RPC named arguments _[W. J. van der Laan]_ - bitcoin#10084 : Rename first named arg of createrawtransaction _[MarcoFalke]_ ACKs for top commit: furszy: cool feature, ACK 9ed1bdd Fuzzbawls: ACK 9ed1bdd Tree-SHA512: 03001e5d1525e30af2126ebbabda275256df3dda170dbaf5732547af50dff90d655db78312666017840959704f6e0f268f99d91542e3a5f15484f1417a7bc904
Fixes #10079.