internal/ethapi: select precompiles using the simulated header #33363 (#1866)

This commit is contained in:
wit liu 2025-12-14 16:17:00 +08:00 committed by GitHub
parent b624614ebc
commit 0199e57fcf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -159,7 +159,7 @@ func (sim *simulator) processBlock(ctx context.Context, block *simBlock, header,
}
}
blockContext := core.NewEVMBlockContext(header, sim.newSimulatedChainContext(ctx, headers), nil)
precompiles := sim.activePrecompiles(sim.base)
precompiles := sim.activePrecompiles(header)
// State overrides are applied prior to execution of a block
if err := block.StateOverrides.Apply(sim.state, precompiles); err != nil {
return nil, nil, err