Skip to content

Commit

Permalink
Close the gap on differences with subnet-evm PR
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jan 23, 2025
1 parent 22370d1 commit 85ec7d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ func (w *worker) commitNewWork(predicateContext *precompileconfig.PredicateConte
env.state.StopPrefetcher()
}()
// Configure any upgrades that should go into effect during this block.
block := types.NewBlockWithHeader(header)
err = core.ApplyUpgrades(w.chainConfig, &parent.Time, block.Number(), block.Time(), env.state)
err = core.ApplyUpgrades(w.chainConfig, &parent.Time, header.Number, header.Time, env.state)
if err != nil {
log.Error("failed to configure precompiles mining new block", "parent", parent.Hash(), "number", header.Number, "timestamp", header.Time, "err", err)
return nil, err
Expand Down

0 comments on commit 85ec7d0

Please sign in to comment.