From a461bb102f2adff501501d012eb87418cd65ee6a Mon Sep 17 00:00:00 2001 From: Eugene Kabanov Date: Mon, 25 Nov 2024 00:51:21 +0200 Subject: [PATCH] Fix block proposer verification failure for light forward syncing algorithm. (#6726) --- beacon_chain/sync/sync_overseer.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_chain/sync/sync_overseer.nim b/beacon_chain/sync/sync_overseer.nim index 4dbf70cc8..738e8cb39 100644 --- a/beacon_chain/sync/sync_overseer.nim +++ b/beacon_chain/sync/sync_overseer.nim @@ -321,9 +321,9 @@ proc rebuildState(overseer: SyncOverseerRef): Future[void] {. let fork = - getStateField(dag.headState, fork) + getStateField(dag.clearanceState, fork) genesis_validators_root = - getStateField(dag.headState, genesis_validators_root) + getStateField(dag.clearanceState, genesis_validators_root) verifyBlockProposer(batchVerifier[], fork, genesis_validators_root, dag.db.immutableValidators, blocksOnly).isOkOr: