diff options
| author | Gregory Sanders <[email protected]> | 2016-11-20 09:54:51 -0500 |
|---|---|---|
| committer | Gregory Sanders <[email protected]> | 2016-12-05 07:43:22 -0500 |
| commit | bc7ff8db99dbc28f8b2d7a22f4650fa5349cb23b (patch) | |
| tree | 4860b28d599fe0fc96ad19d5a56133ddafb1a8cd /src/core_write.cpp | |
| parent | Merge #9282: CMutableTransaction is defined as struct (diff) | |
| download | discoin-bc7ff8db99dbc28f8b2d7a22f4650fa5349cb23b.tar.xz discoin-bc7ff8db99dbc28f8b2d7a22f4650fa5349cb23b.zip | |
Add option to return non-segwit serialization via rpc
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()); } |