forked from dashpay/dash
-
Notifications
You must be signed in to change notification settings - Fork 714
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #2386: [RPC] Support for JSON-RPC named arguments
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
- Loading branch information
Showing
19 changed files
with
712 additions
and
534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.