From 88092bb411113ecdb4eb4c3fe84ab1f9b75ad589 Mon Sep 17 00:00:00 2001 From: tersec Date: Thu, 2 Mar 2023 00:11:46 +0000 Subject: [PATCH] don't try to validate execution block hashes of non-execution payloads (#4687) --- beacon_chain/gossip_processing/block_processor.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beacon_chain/gossip_processing/block_processor.nim b/beacon_chain/gossip_processing/block_processor.nim index 27cf2088c..2f1080ee1 100644 --- a/beacon_chain/gossip_processing/block_processor.nim +++ b/beacon_chain/gossip_processing/block_processor.nim @@ -399,7 +399,8 @@ proc storeBlock*( # https://github.com/ethereum/execution-apis/blob/v1.0.0-beta.2/src/engine/paris.md#specification when typeof(signedBlock).toFork() >= ConsensusFork.Bellatrix: template payload(): auto = signedBlock.message.body.execution_payload - if payload.block_hash != payload.compute_execution_block_hash(): + if signedBlock.message.is_execution_block and + payload.block_hash != payload.compute_execution_block_hash(): debug "Execution block hash validation failed", execution_payload = shortLog(payload) doAssert strictVerification notin dag.updateFlags