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.
This commit is contained in:
Jacek Sieka 2023-03-03 13:15:11 +01:00 committed by GitHub
parent ea060de6d4
commit 65aee9cf22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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())