Skip to content

Commit e7d854c

Browse files
committed
Merge pull request #3690 from laanwj/2014_02_gettransaction_serialize_only_tx
Serialize only CTransaction data in gettransaction RPC hex
2 parents 29ecccb + 05add3f commit e7d854c

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)