Skip to content

Commit

Permalink
Show TX comment in getrawtransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar committed Dec 13, 2018
1 parent 851d0c0 commit 9f1e9a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rpc/rawtransaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ void TxToJSON(const CTransaction& tx, const uint256 hashBlock, UniValue& entry)
entry.push_back(Pair("vsize", (int)::GetVirtualTransactionSize(tx)));
entry.push_back(Pair("version", tx.nVersion));
entry.push_back(Pair("locktime", (int64_t)tx.nLockTime));
entry.push_back(Pair("tx-comment", tx.strTxComment));

UniValue vin(UniValue::VARR);
for (unsigned int i = 0; i < tx.vin.size(); i++) {
Expand Down

0 comments on commit 9f1e9a5

Please sign in to comment.