Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core/consensus): include
coinbase_extra
max size into coinbase …
…weight calculation (#5501) Description --- Include the `coinbase_extra` maximum size into block weight calculation Motivation and Context --- In the consensus constants function `get_max_block_weight_excluding_coinbase` we are not taking into account the size that the `coinbase_extra` field may have. This PR includes the maximum size of that field (provided by `coinbase_output_features_extra_max_length`) in to the calculation. How Has This Been Tested? --- Unit tests What process can a PR reviewer use to test or verify this change? --- <!-- Checklist --> <!-- 1. Is the title of your PR in the form that would make nice release notes? The title, excluding the conventional commit tag, will be included exactly as is in the CHANGELOG, so please think about it carefully. --> Breaking Changes --- - [x] None - [ ] Requires data directory on base node to be deleted - [ ] Requires hard fork - [ ] Other - Please specify <!-- Does this include a breaking change? If so, include this line as a footer --> <!-- BREAKING CHANGE: Description what the user should do, e.g. delete a database, resync the chain --> --------- Co-authored-by: SW van Heerden <[email protected]>
- Loading branch information