diff options
| author | mruddy <[email protected]> | 2014-11-04 13:01:41 -0500 |
|---|---|---|
| committer | mruddy <[email protected]> | 2014-11-04 21:43:03 -0500 |
| commit | 84877904c0f4c4d403e2c768f437c81226c1e137 (patch) | |
| tree | e6451fb03475f8df5c6e37b462e83cc920ade111 /src/core_write.cpp | |
| parent | Merge pull request #5196 (diff) | |
| download | discoin-84877904c0f4c4d403e2c768f437c81226c1e137.tar.xz discoin-84877904c0f4c4d403e2c768f437c81226c1e137.zip | |
bitcoin-tx: Add the "-txid" option. Also add the hex-encoded transaction to the JSON output as the "hex" property.
Diffstat (limited to 'src/core_write.cpp')
| -rw-r--r-- | src/core_write.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core_write.cpp b/src/core_write.cpp index a3ae8eec0..1d92cf87b 100644 --- a/src/core_write.cpp +++ b/src/core_write.cpp @@ -129,4 +129,6 @@ void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry) if (hashBlock != 0) entry.pushKV("blockhash", hashBlock.GetHex()); + + entry.pushKV("hex", EncodeHexTx(tx)); // the hex-encoded transaction. used the name "hex" to be consistent with the verbose output of "getrawtransaction". } |