diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2014-02-17 10:18:34 -0500 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2014-02-17 10:18:34 -0500 |
commit | e7d854c8ba0065f788e3089a7a5d56277a06313c (patch) | |
tree | 11b0ba2df4cda21b17b7cc1cdb9060fb8c40ab3b | |
parent | 29ecccb597fd373f7b9ab2979f3a13fb486513bb (diff) | |
parent | 05add3fe0e610f3b2831e31431183b4555739919 (diff) |
Merge pull request #3690 from laanwj/2014_02_gettransaction_serialize_only_tx
Serialize only CTransaction data in gettransaction RPC hex
-rw-r--r-- | src/rpcwallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index c9152d7759..38c669a1f6 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -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)); |