0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-10 10:52:31 -05:00
bitcoin-bitcoin-core/src/rpc
Wladimir J. van der Laan 041dad94b0
Merge #10783: [RPC] Various rpc argument fixes
4dc1915 check for null values in rpc args and handle appropriately (Gregory Sanders)
999ef20 importmulti options are optional (Gregory Sanders)
a70d025 fixup some rpc param counting for rpc help (Gregory Sanders)

Pull request description:

  Audited where named args will fail to use correct default values or may fail when additional optional arguments are added.

  Previously for these parameters, it was fine to omit them as positional arguments, but it would trigger UniValue runtime errors to set them to null, or to omit them while passing named parameters with greater positions (which would internally set earlier missing arguments to null). Now null values are treated the same as missing values so these errors do not occur.

  Included a few other small fixes while working on it.

  I didn't bother fixing account-based rpc calls.

Tree-SHA512: 8baf781a35bd48de7878d4726850a580dab80323d3416c1c146b4fa9062f8a233c03f37e8ae3f3159e9d04a8f39c326627ca64c14e1cb7ce72538f934ab2ae1e
2017-07-20 17:02:07 +02:00
..
blockchain.cpp check for null values in rpc args and handle appropriately 2017-07-17 08:53:18 -04:00
blockchain.h Remove unnecessary forward class declarations in header files 2017-06-12 20:37:43 +02:00
client.cpp Merge #10571: [RPC]Move transaction combining from signrawtransaction to new RPC 2017-07-20 16:42:27 +02:00
client.h rpc: Named argument support for bitcoin-cli 2017-01-10 12:04:54 +01:00
mining.cpp Merge #10783: [RPC] Various rpc argument fixes 2017-07-20 17:02:07 +02:00
mining.h Properly bound check conf_target in wallet RPC calls 2017-07-14 23:41:40 -04:00
misc.cpp Merge #10857: [RPC] Add a deprecation warning to getinfo's output 2017-07-19 17:01:19 +02:00
net.cpp Merge #10783: [RPC] Various rpc argument fixes 2017-07-20 17:02:07 +02:00
protocol.cpp Replace uses of boost::filesystem with fs 2017-04-03 12:32:32 +02:00
protocol.h Replace uses of boost::filesystem with fs 2017-04-03 12:32:32 +02:00
rawtransaction.cpp Merge #10783: [RPC] Various rpc argument fixes 2017-07-20 17:02:07 +02:00
register.h Do not shadow global RPC table variable (tableRPC) 2016-08-25 15:02:26 +02:00
server.cpp Merge #10193: scripted-diff: Remove #include <boost/foreach.hpp> 2017-07-04 18:05:18 +02:00
server.h Remove unnecessary forward class declarations in header files 2017-06-12 20:37:43 +02:00