Add tx-comment to JSON responses
This commit is contained in:
parent
3e3112d0bc
commit
a2597a4325
@ -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());
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user