Use pushKV in some new PSBT RPCs.

Most of the code uses UniValue::pushKV where appropriate, but some new
RPC code related to PSBTs did not.
This commit is contained in:
Daniel Kraft
2018-08-09 18:08:45 +02:00
parent 3e3a50aeb8
commit 227d27e70c
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -4630,8 +4630,8 @@ UniValue walletprocesspsbt(const JSONRPCRequest& request)
UniValue result(UniValue::VOBJ);
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << psbtx;
result.push_back(Pair("psbt", EncodeBase64((unsigned char*)ssTx.data(), ssTx.size())));
result.push_back(Pair("complete", complete));
result.pushKV("psbt", EncodeBase64((unsigned char*)ssTx.data(), ssTx.size()));
result.pushKV("complete", complete);
return result;
}