Bugfix: Invalid execution header HTR leads to invalid state root (#4889)

This commit is contained in:
zah 2023-05-04 19:52:43 +03:00 committed by GitHub
parent 4a1b94bc2e
commit 1e7eec18ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -658,7 +658,7 @@ proc getBlindedBlockParts[EPH: ForkyExecutionPayloadHeader](
transactions_root =
Opt.some executionPayloadHeader.get.blindedBlckPart.transactions_root,
execution_payload_root =
Opt.some hash_tree_root(executionPayloadHeader.get),
Opt.some hash_tree_root(executionPayloadHeader.get.blindedBlckPart),
withdrawals_root = withdrawals_root)
if newBlock.isErr():