Add option to return non-segwit serialization via rpc
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user