aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/server.cpp
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2016-11-20 09:54:51 -0500
committerGregory Sanders <gsanders87@gmail.com>2016-12-05 07:43:22 -0500
commitbc7ff8db99dbc28f8b2d7a22f4650fa5349cb23b (patch)
tree4860b28d599fe0fc96ad19d5a56133ddafb1a8cd /src/rpc/server.cpp
parent7d5d44969b4ab46a5146a46b4ed1ed7704d71c63 (diff)
Add option to return non-segwit serialization via rpc
Diffstat (limited to 'src/rpc/server.cpp')
-rw-r--r--src/rpc/server.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp
index 164e0f00e2..2122819398 100644
--- a/src/rpc/server.cpp
+++ b/src/rpc/server.cpp
@@ -497,4 +497,12 @@ void RPCRunLater(const std::string& name, boost::function<void(void)> func, int6
deadlineTimers.emplace(name, std::unique_ptr<RPCTimerBase>(timerInterface->NewTimer(func, nSeconds*1000)));
}
+int RPCSerializationFlags()
+{
+ int flag = 0;
+ if (GetArg("-rpcserialversion", DEFAULT_RPC_SERIALIZE_VERSION) == 0)
+ flag |= SERIALIZE_TRANSACTION_NO_WITNESS;
+ return flag;
+}
+
CRPCTable tableRPC;