Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core/types: add length check in CalcRequestsHash (ethereum#30829)
The existing implementation is correct when building and verifying blocks, since we will only collect non-empty requests into the block requests list. But it isn't correct for cases where a requests list containing empty items is sent by the consensus layer on the engine API. We want to ensure that empty requests do not cause a difference in validation there, so the commitment computation should explicitly skip them.
- Loading branch information