Bugfix: historic blocks violate the latest specs for the extraData field (fixes #4695) (#4700)

This commit is contained in:
zah 2023-03-07 06:43:27 +02:00 committed by GitHub
parent 63b1b0840f
commit 9cd30768e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -884,6 +884,11 @@ proc getPayload*(m: ELManager,
withdrawals_from_cl = engineApiWithdrawals,
withdrawals_from_el = req.read.executionPayload.withdrawals
if req.read.executionPayload.extraData.len > MAX_EXTRA_DATA_BYTES:
warn "Execution client provided a block with invalid extraData (size exceeds limit)",
size = req.read.executionPayload.extraData.len, limit = MAX_EXTRA_DATA_BYTES
continue
if bestPayloadIdx.isNone:
bestPayloadIdx = some idx
else:

2
vendor/nim-web3 vendored

@ -1 +1 @@
Subproject commit 610dda642c3d7e5b0f50bba5457f0da490219001
Subproject commit bf6c24dba5c808ac570b8602d3b2f748da6a1aae