diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-12-06 08:21:14 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-12-06 08:21:57 +0100 |
| commit | ed8d693c71b01caa310922f883b3915c09bb6a35 (patch) | |
| tree | 62eadd8c5279b73c053b0704d5eae5ce7f2436f4 /src/core_write.cpp | |
| parent | Merge #9282: CMutableTransaction is defined as struct (diff) | |
| parent | Adapt ZMQ/rest serialization to take rpcserialversion arg (diff) | |
| download | discoin-ed8d693c71b01caa310922f883b3915c09bb6a35.tar.xz discoin-ed8d693c71b01caa310922f883b3915c09bb6a35.zip | |
Merge #9194: Add option to return non-segwit serialization via rpc
412bab2 Adapt ZMQ/rest serialization to take rpcserialversion arg (instagibbs)
bc7ff8d Add option to return non-segwit serialization via rpc (Gregory Sanders)
Diffstat (limited to 'src/core_write.cpp')
| -rw-r--r-- | src/core_write.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core_write.cpp b/src/core_write.cpp index ea01ddc10..9f859ba9e 100644 --- a/src/core_write.cpp +++ b/src/core_write.cpp @@ -116,9 +116,9 @@ string ScriptToAsmStr(const CScript& script, const bool fAttemptSighashDecode) return str; } -string EncodeHexTx(const CTransaction& tx) +string EncodeHexTx(const CTransaction& tx, const int serialFlags) { - CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION); + CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION | serialFlags); ssTx << tx; return HexStr(ssTx.begin(), ssTx.end()); } |