internal/ethapi: Fix processBlock not calling ProcessParentBlockHash

This commit is contained in:
nethoxa 2025-02-18 21:57:28 +01:00
parent 992883df31
commit 5aa511ecf2
1 changed files with 3 additions and 0 deletions

View File

@ -194,6 +194,9 @@ func (sim *simulator) processBlock(ctx context.Context, block *simBlock, header,
if precompiles != nil {
evm.SetPrecompiles(precompiles)
}
if sim.chainConfig.IsPrague(header.Number, header.Time) || sim.chainConfig.IsVerkle(header.Number, header.Time) {
core.ProcessParentBlockHash(header.ParentHash, evm)
}
var allLogs []*types.Log
for i, call := range block.Calls {
if err := ctx.Err(); err != nil {