rpc: drop unused JSONRPCProcessBatchReply size arg, refactor

This commit is contained in:
Jon Atack 2020-04-12 21:46:16 +02:00
parent afce85eb99
commit 903b6c117f
No known key found for this signature in database
GPG key ID: 4F5721B3D0E3921D
3 changed files with 7 additions and 7 deletions

View file

@ -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()) {