go-ethereum/consensus
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
..
clique refactor(crypto): vendor in golang.org/x/crypto/sha3 #33323 (#2046) 2026-02-28 17:23:57 +04:00
ethash fix(consensus): hardening header verification #33860 (#2071) 2026-03-06 11:10:32 +05:30
misc fix(consensus): hardening header verification #33860 (#2071) 2026-03-06 11:10:32 +05:30
tests fix(eth/hooks,contracts): use parent-state randomize data for checkpoint validator verification (#2186) 2026-03-21 15:26:54 +08:00
XDPoS fix(consensus): fix config object not reference to same one and concurrency issues and refactor access pattern (#2146) 2026-03-12 12:12:49 -07:00
consensus.go core/state: move state log mechanism to a separate layer #30569 #30732 (#1775) 2025-12-16 07:33:19 +04:00
errors.go all: fix staticcheck warning ST1005: incorrectly formatted error string 2024-10-24 09:48:20 +08:00