mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Use ParamsWrapper for witness serialization
This commit is contained in:
@@ -390,8 +390,8 @@ static RPCHelpMan generateblock()
|
||||
UniValue obj(UniValue::VOBJ);
|
||||
obj.pushKV("hash", block_out->GetHash().GetHex());
|
||||
if (!process_new_block) {
|
||||
CDataStream block_ser{SER_NETWORK, PROTOCOL_VERSION | RPCSerializationFlags()};
|
||||
block_ser << *block_out;
|
||||
DataStream block_ser;
|
||||
block_ser << RPCTxSerParams(*block_out);
|
||||
obj.pushKV("hex", HexStr(block_ser));
|
||||
}
|
||||
return obj;
|
||||
|
||||
Reference in New Issue
Block a user