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/rpc/server.h | |
| 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/rpc/server.h')
| -rw-r--r-- | src/rpc/server.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rpc/server.h b/src/rpc/server.h index c59886222..4fac68a51 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 @@ -198,4 +200,7 @@ void StopRPC(); std::string JSONRPCExecBatch(const UniValue& vReq); void RPCNotifyBlockChange(bool ibd, const CBlockIndex *); +// Retrieves any serialization flags requested in command line argument +int RPCSerializationFlags(); + #endif // BITCOIN_RPCSERVER_H |