fix(internal): process prague system calls in eth_simulate #31176 (#2069)

This commit is contained in:
Daniel Liu 2026-02-23 09:50:38 +08:00 committed by GitHub
parent 9f720806e1
commit fc6c692097
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -186,6 +186,9 @@ func (sim *simulator) processBlock(ctx context.Context, block *simBlock, header,
if precompiles != nil {
evm.SetPrecompiles(precompiles)
}
if sim.chainConfig.IsPrague(header.Number) {
core.ProcessParentBlockHash(header.ParentHash, evm)
}
for i, call := range block.Calls {
if err := ctx.Err(); err != nil {
return nil, nil, err