diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-12-05 11:23:20 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-12-05 11:24:39 +0100 |
| commit | 7d42644dda33c1e1ab0c63730517f4005742f0e1 (patch) | |
| tree | 0875f0749310d596bdc621d4ecd494c8a9370a42 /src/core_write.cpp | |
| parent | Merge pull request #5308 (diff) | |
| parent | bitcoin-tx: Add the "-txid" option. Also add the hex-encoded transaction to t... (diff) | |
| download | discoin-7d42644dda33c1e1ab0c63730517f4005742f0e1.tar.xz discoin-7d42644dda33c1e1ab0c63730517f4005742f0e1.zip | |
Merge pull request #5207
8487790 bitcoin-tx: Add the "-txid" option. Also add the hex-encoded transaction to the JSON output as the "hex" property. (mruddy)
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 b4e82b986..760b6a71b 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". } |