mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Serialize only CTransaction data in gettransaction RPC hex
Don't include trailing implementation-specific wallet metadata.
Fixes 3a1c20b
.
This commit is contained in:
parent
b8d9058a4d
commit
05add3fe0e
@ -1496,7 +1496,7 @@ Value gettransaction(const Array& params, bool fHelp)
|
||||
entry.push_back(Pair("details", details));
|
||||
|
||||
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
|
||||
ssTx << wtx;
|
||||
ssTx << static_cast<CTransaction>(wtx);
|
||||
string strHex = HexStr(ssTx.begin(), ssTx.end());
|
||||
entry.push_back(Pair("hex", strHex));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user