aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoin-cli.cpp
diff options
context:
space:
mode:
authorJon Atack <[email protected]>2020-04-12 21:46:16 +0200
committerJon Atack <[email protected]>2020-05-21 10:24:26 +0200
commit903b6c117f541ea9258d3234ffcf59427344e668 (patch)
tree5b311e452098512acc1d413c65d9aef8516ddfbc /src/bitcoin-cli.cpp
parentcli: use GetWalletBalances() functionality for -getinfo (diff)
downloaddiscoin-903b6c117f541ea9258d3234ffcf59427344e668.tar.xz
discoin-903b6c117f541ea9258d3234ffcf59427344e668.zip
rpc: drop unused JSONRPCProcessBatchReply size arg, refactor
Diffstat (limited to 'src/bitcoin-cli.cpp')
-rw-r--r--src/bitcoin-cli.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp
index 045442c9f..45a586cd1 100644
--- a/src/bitcoin-cli.cpp
+++ b/src/bitcoin-cli.cpp
@@ -251,7 +251,7 @@ public:
UniValue ProcessReply(const UniValue &batch_in) override
{
UniValue result(UniValue::VOBJ);
- std::vector<UniValue> batch = JSONRPCProcessBatchReply(batch_in, batch_in.size());
+ const std::vector<UniValue> batch = JSONRPCProcessBatchReply(batch_in);
// Errors in getnetworkinfo() and getblockchaininfo() are fatal, pass them on;
// getwalletinfo() and getbalances() are allowed to fail if there is no wallet.
if (!batch[ID_NETWORKINFO]["error"].isNull()) {