From 65aee9cf2280cfe6889fa901227def4a7801016c Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Fri, 3 Mar 2023 13:15:11 +0100 Subject: [PATCH] ncli_db: use fork from runtimeconfig when verifying era file (#4689) Sepolia in particular goes through two hard forks during era 1, meaning the phase0 fork is no longer part of the state, even though blocks that belong to it still are phase0. --- beacon_chain/era_db.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_chain/era_db.nim b/beacon_chain/era_db.nim index b7767be8a7..b32fa013e9 100644 --- a/beacon_chain/era_db.nim +++ b/beacon_chain/era_db.nim @@ -220,7 +220,7 @@ proc verify*(f: EraFile, cfg: RuntimeConfig): Result[Eth2Digest, string] = # Batch-verification more than doubles total verification speed sigs.add block_signature_set( - getStateField(state[], fork), + cfg.forkAtEpoch(slot.epoch), getStateField(state[], genesis_validators_root), slot, blck[].root, cooked.get(), sig.get())