attempt miner fix (untested)

This commit is contained in:
Jared Wasinger 2025-12-18 11:02:22 -08:00
parent 630a79e9d4
commit 158e44a531
2 changed files with 5 additions and 3 deletions

View file

@ -67,6 +67,9 @@ func (a *BlockAccessListTracer) AccessList() *bal.AccessListBuilder {
} }
func (a *BlockAccessListTracer) OnSystemCallEnd() { func (a *BlockAccessListTracer) OnSystemCallEnd() {
// finalize the post-block changes in OnBlockFinalization to account for
// the EIP-4895 withdrawals which occur after the last system contracts
// are executed.
if a.isPostTx { if a.isPostTx {
return return
} }

View file

@ -275,9 +275,8 @@ func (miner *Miner) prepareWork(genParams *generateParams, witness bool) (*envir
if miner.chainConfig.IsPrague(header.Number, header.Time) { if miner.chainConfig.IsPrague(header.Number, header.Time) {
core.ProcessParentBlockHash(header.ParentHash, env.evm) core.ProcessParentBlockHash(header.ParentHash, env.evm)
} }
if miner.chainConfig.IsAmsterdam(header.Number, header.Time) { // TODO: verify that we can make blocks that correctly record the pre-tx system calls
env.alTracer.OnPreTxExecutionDone() // TODO ^ comprehensive miner unit tests
}
return env, nil return env, nil
} }