Changeset View
Changeset View
Standalone View
Standalone View
src/core_write.cpp
Show First 20 Lines • Show All 242 Lines • ▼ Show 20 Lines | void TxToUniv(const CTransaction &tx, const uint256 &hashBlock, UniValue &entry, | ||||
entry.pushKV("vout", vout); | entry.pushKV("vout", vout); | ||||
if (!hashBlock.IsNull()) { | if (!hashBlock.IsNull()) { | ||||
entry.pushKV("blockhash", hashBlock.GetHex()); | entry.pushKV("blockhash", hashBlock.GetHex()); | ||||
} | } | ||||
if (include_hex) { | if (include_hex) { | ||||
// the hex-encoded transaction. used the name "hex" to be consistent | // The hex-encoded transaction. Used the name "hex" to be consistent | ||||
// with the verbose output of "getrawtransaction". | // with the verbose output of "getrawtransaction". | ||||
entry.pushKV("hex", EncodeHexTx(tx, serialize_flags)); | entry.pushKV("hex", EncodeHexTx(tx, serialize_flags)); | ||||
} | } | ||||
} | } |