Skip to content

Commit

Permalink
Serialize only CTransaction data in gettransaction RPC hex
Browse files Browse the repository at this point in the history
Don't include trailing implementation-specific wallet metadata.
Fixes 3a1c20b.
  • Loading branch information
laanwj committed Feb 17, 2014
1 parent b8d9058 commit 05add3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpcwallet.cpp
Expand Up @@ -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));

Expand Down

0 comments on commit 05add3f

Please sign in to comment.