go-ethereum/contracts
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
..
blocksigner all: fix goimports (#1560) 2025-09-24 07:51:10 +08:00
multisigwallet all: fix goimports (#1495) 2025-09-17 08:15:43 +08:00
randomize core: move genesis alloc types to core/types (#29003) 2025-01-24 16:54:12 +08:00
solidity_0.6 new EVM Upgrade 2021-09-21 16:53:46 +05:30
tests contracts, tests: fix global variable modifications and remove unsafe parallelism (#1882) 2025-12-22 12:00:39 +05:30
trc21issuer all: replace Div/Mul with Rsh/Lsh if possible #29911 (#1966) 2026-01-29 11:31:58 +05:30
validator fix(all): fix typo foudation (#2063) 2026-02-28 18:00:55 +04:00
XDCx all: remove extra empty lines (#1574) 2025-10-08 12:25:10 +08:00
utils.go fix(eth/hooks,contracts): use parent-state randomize data for checkpoint validator verification (#2186) 2026-03-21 15:26:54 +08:00
utils_test.go fix(contracts): use pool nonce for imported block sign tx (#2213) 2026-03-19 14:26:58 +08:00