mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-27 20:42:33 +02:00
Merge pull request #3690 from laanwj/2014_02_gettransaction_serialize_only_tx
Serialize only CTransaction data in gettransaction RPC hex
This commit is contained in:
commit
e7d854c8ba
@ -1496,7 +1496,7 @@ Value gettransaction(const Array& params, bool fHelp)
|
|||||||
entry.push_back(Pair("details", details));
|
entry.push_back(Pair("details", details));
|
||||||
|
|
||||||
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
|
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
|
||||||
ssTx << wtx;
|
ssTx << static_cast<CTransaction>(wtx);
|
||||||
string strHex = HexStr(ssTx.begin(), ssTx.end());
|
string strHex = HexStr(ssTx.begin(), ssTx.end());
|
||||||
entry.push_back(Pair("hex", strHex));
|
entry.push_back(Pair("hex", strHex));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user