Skip to content

Commit 05add3f

Browse files
committed
Serialize only CTransaction data in gettransaction RPC hex
Don't include trailing implementation-specific wallet metadata. Fixes 3a1c20b.
1 parent b8d9058 commit 05add3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpcwallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ Value gettransaction(const Array& params, bool fHelp)
14961496
entry.push_back(Pair("details", details));
14971497

14981498
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
1499-
ssTx << wtx;
1499+
ssTx << static_cast<CTransaction>(wtx);
15001500
string strHex = HexStr(ssTx.begin(), ssTx.end());
15011501
entry.push_back(Pair("hex", strHex));
15021502

0 commit comments

Comments
 (0)