Add tx-comment to JSON responses

This commit is contained in:
Jeremiah Buddenhagen 2018-01-03 01:02:07 -06:00
parent 3e3112d0bc
commit a2597a4325

View File

@ -204,6 +204,10 @@ void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry,
}
entry.pushKV("vout", vout);
if (tx.nVersion >= 2) {
entry.pushKV("tx-comment", tx.strTxComment);
}
if (!hashBlock.IsNull())
entry.pushKV("blockhash", hashBlock.GetHex());