diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-02-17 08:53:16 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-02-17 08:53:16 +0100 |
| commit | 05add3fe0e610f3b2831e31431183b4555739919 (patch) | |
| tree | c7e33886ae1ca248c059f9f209bb5765a876ee70 /src/rpcwallet.cpp | |
| parent | Merge pull request #3646 (diff) | |
| download | discoin-05add3fe0e610f3b2831e31431183b4555739919.tar.xz discoin-05add3fe0e610f3b2831e31431183b4555739919.zip | |
Serialize only CTransaction data in gettransaction RPC hex
Don't include trailing implementation-specific wallet metadata.
Fixes 3a1c20b.
Diffstat (limited to 'src/rpcwallet.cpp')
| -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 c9152d775..38c669a1f 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)); |