HomePhabricator

Reset the block template in the constructor

Description

Reset the block template in the constructor

Summary:
This initalize the block template with the reserved coinbase size when constructed. There is no change in behavior because resetBlock() is already called in the callsites, but it makes the code easier to reason about.

Depends on D17791.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D17792

Details

Provenance
FabienAuthored on Mar 12 2025, 20:36
FabienPushed on Mar 13 2025, 14:24
Reviewer
Restricted Project
Differential Revision
D17792: Reset the block template in the constructor
Parents
rABCa5d9b7229373: Use constants for the coinbase reserved size in the block assembler
Branches
Unknown
Tags
Unknown