aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/server.h
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/rpc/server.h
parenta710a4304033eea581e463a5fb0502bdb8991aa1 (diff)
downloadbitcoin-21ccb9f2530af996fc0a58df418837a08b75781f.tar.xz
Add option to return non-segwit serialization via rpc
Github-Pull: #9194 Rebased-From: 835c75acaac004c3315395dcd7d1f193dfb9e5da
Diffstat (limited to 'src/rpc/server.h')
-rw-r--r--src/rpc/server.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rpc/server.h b/src/rpc/server.h
index b5ccc153d0..1ed8f2466d 100644
--- a/src/rpc/server.h
+++ b/src/rpc/server.h
@@ -19,6 +19,8 @@
#include <univalue.h>
+static const unsigned int DEFAULT_RPC_SERIALIZE_VERSION = 1;
+
class CRPCCommand;
namespace RPCServer
@@ -195,4 +197,7 @@ void InterruptRPC();
void StopRPC();
std::string JSONRPCExecBatch(const UniValue& vReq);
+// Retrieves any serialization flags requested in command line argument
+int RPCSerializationFlags();
+
#endif // BITCOIN_RPCSERVER_H