diff options
| author | Gregory Maxwell <[email protected]> | 2013-12-06 15:56:38 -0800 |
|---|---|---|
| committer | Gregory Maxwell <[email protected]> | 2013-12-06 15:59:34 -0800 |
| commit | a702a0b61dc4a473d5828c75cff1e90ba96cee8d (patch) | |
| tree | 999030d81c69e0e656a5cda46a1e1c1d58a58548 /src/rpcrawtransaction.cpp | |
| parent | Merge pull request #3359 (diff) | |
| download | discoin-a702a0b61dc4a473d5828c75cff1e90ba96cee8d.tar.xz discoin-a702a0b61dc4a473d5828c75cff1e90ba96cee8d.zip | |
Restore hex to getrawtransaction vout scriptPubkey.
Commit be066fad accidentally removed the hex field.
This gets in the way of doing offline signing.
(credit belongs to sipa for actually looking for the
cause instead of being lazy like me and just shrugging
and writing the scriptpubkey from the asm.)
Diffstat (limited to 'src/rpcrawtransaction.cpp')
| -rw-r--r-- | src/rpcrawtransaction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcrawtransaction.cpp b/src/rpcrawtransaction.cpp index 939ca96f7..a45c2cc1f 100644 --- a/src/rpcrawtransaction.cpp +++ b/src/rpcrawtransaction.cpp @@ -78,7 +78,7 @@ void TxToJSON(const CTransaction& tx, const uint256 hashBlock, Object& entry) out.push_back(Pair("value", ValueFromAmount(txout.nValue))); out.push_back(Pair("n", (boost::int64_t)i)); Object o; - ScriptPubKeyToJSON(txout.scriptPubKey, o, false); + ScriptPubKeyToJSON(txout.scriptPubKey, o, true); out.push_back(Pair("scriptPubKey", o)); vout.push_back(out); } |