Page MenuHomePhabricator

Use constants for the coinbase reserved size in the block assembler
Needs ReviewPublic

Authored by Fabien on Wed, Mar 12, 20:30.

Details

Reviewers
None
Group Reviewers
Restricted Project
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

Diff Detail

Repository
rABC Bitcoin ABC
Branch
block_assembler_coinbase_constants
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 32694
Build 64876: Build Diffbuild-diff · build-without-wallet · lint-circular-dependencies · build-clang-tidy · build-debug · build-clang
Build 64875: arc lint + arc unit