diff options
| author | Daniel Kraft <[email protected]> | 2018-08-09 18:08:45 +0200 |
|---|---|---|
| committer | Daniel Kraft <[email protected]> | 2018-08-09 18:08:45 +0200 |
| commit | 227d27e70c1b41ee88885d72bcf48448aa5a57a9 (patch) | |
| tree | 98c26c17be6bd89a97cd8c3cabd3ef318dbaf4a0 /src/wallet/rpcwallet.cpp | |
| parent | Merge #13911: doc: Revert translated string change, clarify wallet log messages (diff) | |
| download | discoin-227d27e70c1b41ee88885d72bcf48448aa5a57a9.tar.xz discoin-227d27e70c1b41ee88885d72bcf48448aa5a57a9.zip | |
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.
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
| -rw-r--r-- | src/wallet/rpcwallet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 73dfebf11..4e539a85d 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -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; } |