Add option to return non-segwit serialization via rpc

This commit is contained in:
Gregory Sanders 2016-11-20 09:54:51 -05:00
parent 7d5d44969b
commit bc7ff8db99
9 changed files with 40 additions and 9 deletions

View file

@ -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;