go-ethereum/consensus/tests/engine_v1_tests
Daniel Liu 001bd7ef3b
fix(eth/hooks,contracts): use parent-state randomize data for checkpoint validator verification (#2186)
Read randomize values at the checkpoint parent height during v1 HookValidator and HookVerifyMNs instead of the latest chain state. This fixes a sync-time race where historical checkpoint headers could be rejected with ErrInvalidCheckpointValidators and then accepted later after local state advanced.

The accompanying regression test now derives expected validators independently from HookValidator and the M2 generation path uses a local RNG source, removing CI-only nondeterminism during repeated verification.
2026-03-21 15:26:54 +08:00
..
authorised_test.go verify header including validator (#71) 2022-03-20 21:14:35 +11:00
block_signer_test.go all: change chain head markers from block to header #26777 (#1846) 2025-12-16 07:36:51 +04:00
blockchain_race_condition_test.go all: change chain head markers from block to header #26777 (#1846) 2025-12-16 07:36:51 +04:00
checkpoint_sync_invalid_validators_test.go fix(eth/hooks,contracts): use parent-state randomize data for checkpoint validator verification (#2186) 2026-03-21 15:26:54 +08:00
helper.go refactor(core): remove unnecessary parameters #30776 (#2068) 2026-02-20 13:51:30 +05:30