mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Use ParamsWrapper for witness serialization
This commit is contained in:
parent
5800c558eb
commit
6e9e4e6130
59 changed files with 226 additions and 219 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue