Page MenuHomePhabricator

Use constants for the coinbase reserved size in the block assembler
ClosedPublic

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

Details

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
Lint
Lint Not Applicable
Unit
Tests Not Applicable