HomePhabricator

Use constants for the coinbase reserved size in the block assembler

Description

Use constants for the coinbase reserved size in the block assembler

Summary:
This avoids magic constants and makes the code self-documenting.
There is no change in behavior.

The use of std::clamp instead of min and max makes the code more readable.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
FabienAuthored on Mar 12 2025, 20:26
FabienPushed on Mar 13 2025, 14:24
Reviewer
Restricted Project
Differential Revision
D17791: Use constants for the coinbase reserved size in the block assembler
Parents
rABC6f6281853271: [ecash-lib] Allow use of .only in mocha test files
Branches
Unknown
Tags
Unknown