Skip to content

Commit 28b20e4

Browse files
committed
Merge ElementsProject#281: re-add transaction comments to univalue returns
7e954d1 re-add transaction comments to univalue returns (Gregory Sanders)
2 parents a41db2a + 7e954d1 commit 28b20e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ void WalletTxToJSON(const CWalletTx& wtx, UniValue& entry)
147147
rbfStatus = "yes";
148148
}
149149
entry.push_back(Pair("bip125-replaceable", rbfStatus));
150+
151+
// Push transaction comments
152+
entry.push_back(Pair("comment", wtx.mapValue["comment"]));
153+
entry.push_back(Pair("to", wtx.mapValue["to"]));
154+
150155
}
151156

152157
string AccountFromValue(const UniValue& value)

0 commit comments

Comments
 (0)