aboutsummaryrefslogtreecommitdiff
path: root/src/core_write.cpp
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2016-11-20 09:54:51 -0500
committerWladimir J. van der Laan <laanwj@gmail.com>2016-12-05 08:11:03 +0100
commit21ccb9f2530af996fc0a58df418837a08b75781f (patch)
treecd4e268c67c09a0462b3a149871fcefa4d44886a /src/core_write.cpp
parenta710a4304033eea581e463a5fb0502bdb8991aa1 (diff)
Add option to return non-segwit serialization via rpc
Github-Pull: #9194 Rebased-From: 835c75acaac004c3315395dcd7d1f193dfb9e5da
Diffstat (limited to 'src/core_write.cpp')
-rw-r--r--src/core_write.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core_write.cpp b/src/core_write.cpp
index ea01ddc10d..9f859ba9e1 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());
}