Files
zeekayandHanzo Dev edd69068a3 test: restore the four test packages that no longer compiled
params, utilstest, allowlisttest and warp each carried a test file written
against an API that has since moved, so `go vet ./...` reported four build
failures and those packages ran no tests at all.

- utilstest: validator state comes from the runtime context, not consensus,
  and GetValidatorSet takes a context now.
- params: DurangoTimestamp lives on extras.ChainConfig; the geth ChainConfig
  literal no longer has the field. The test already sets it on extras.
- allowlisttest: contract.Configurator gained MakeGenesisConfig.
- warp: the runtime import is used under the name context; block.Context is
  reached as chain.Context; the validator wrapper had the pre-context
  GetValidatorSet signature; runtime has no WithIDs, and the test helper
  NewTestConsensusContextWithChainID already does what it was reaching for.

Also stop range-copying types.Block in core/rlp_import_test.go: it carries an
atomic.Pointer that must not be copied. vet flagged it.

go build ./... and go vet ./... now both exit 0.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-28 23:24:57 -07:00
..