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/blockchain.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/rpc/blockchain.cpp')
| -rw-r--r-- | src/rpc/blockchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index e6d80f06a..1139c2aa5 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -751,7 +751,7 @@ UniValue getblock(const JSONRPCRequest& request) if (!fVerbose) { - CDataStream ssBlock(SER_NETWORK, PROTOCOL_VERSION); + CDataStream ssBlock(SER_NETWORK, PROTOCOL_VERSION | RPCSerializationFlags()); ssBlock << block; std::string strHex = HexStr(ssBlock.begin(), ssBlock.end()); return strHex; |