Skip to content

Commit a702a0b

Browse files
committed
Restore hex to getrawtransaction vout scriptPubkey.
Commit be066fa 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.)
1 parent ac57a23 commit a702a0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpcrawtransaction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void TxToJSON(const CTransaction& tx, const uint256 hashBlock, Object& entry)
7878
out.push_back(Pair("value", ValueFromAmount(txout.nValue)));
7979
out.push_back(Pair("n", (boost::int64_t)i));
8080
Object o;
81-
ScriptPubKeyToJSON(txout.scriptPubKey, o, false);
81+
ScriptPubKeyToJSON(txout.scriptPubKey, o, true);
8282
out.push_back(Pair("scriptPubKey", o));
8383
vout.push_back(out);
8484
}

0 commit comments

Comments
 (0)