aboutsummaryrefslogtreecommitdiff
path: root/src/rpcwallet.cpp
diff options
context:
space:
mode:
authorJeff Garzik <[email protected]>2014-07-30 23:17:19 -0400
committerJeff Garzik <[email protected]>2014-07-30 23:17:19 -0400
commita715a643bcda579c324b2c1d2dac449a320951c9 (patch)
tree661781f5c7626ebc89be71311699b08483d4cb86 /src/rpcwallet.cpp
parentMerge pull request #4497 (diff)
parentAdd "bitcoin-tx" command line utility and supporting modules. (diff)
downloaddiscoin-a715a643bcda579c324b2c1d2dac449a320951c9.tar.xz
discoin-a715a643bcda579c324b2c1d2dac449a320951c9.zip
Merge branch 'rawtx' into merge-rawtx
Diffstat (limited to 'src/rpcwallet.cpp')
-rw-r--r--src/rpcwallet.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp
index 5b83fe900..667ca33ce 100644
--- a/src/rpcwallet.cpp
+++ b/src/rpcwallet.cpp
@@ -4,6 +4,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h"
+#include "core_io.h"
#include "rpcserver.h"
#include "init.h"
#include "net.h"
@@ -1550,9 +1551,7 @@ Value gettransaction(const Array& params, bool fHelp)
ListTransactions(wtx, "*", 0, false, details, filter);
entry.push_back(Pair("details", details));
- CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
- ssTx << static_cast<CTransaction>(wtx);
- string strHex = HexStr(ssTx.begin(), ssTx.end());
+ string strHex = EncodeHexTx(static_cast<CTransaction>(wtx));
entry.push_back(Pair("hex", strHex));
return entry;