From 7e954d150338e90bff702653631bc626a91621f2 Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Tue, 10 Oct 2017 11:55:43 -0400 Subject: [PATCH] re-add transaction comments to univalue returns --- src/wallet/rpcwallet.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 095871ee98..c9670c1136 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -146,6 +146,11 @@ void WalletTxToJSON(const CWalletTx& wtx, UniValue& entry) rbfStatus = "yes"; } entry.push_back(Pair("bip125-replaceable", rbfStatus)); + + // Push transaction comments + entry.push_back(Pair("comment", wtx.mapValue["comment"])); + entry.push_back(Pair("to", wtx.mapValue["to"])); + } string AccountFromValue(const UniValue& value)