mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 07:37:20 +00:00
attempt miner fix (untested)
This commit is contained in:
parent
630a79e9d4
commit
158e44a531
2 changed files with 5 additions and 3 deletions
|
|
@ -67,6 +67,9 @@ func (a *BlockAccessListTracer) AccessList() *bal.AccessListBuilder {
|
|||
}
|
||||
|
||||
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 {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -275,9 +275,8 @@ func (miner *Miner) prepareWork(genParams *generateParams, witness bool) (*envir
|
|||
if miner.chainConfig.IsPrague(header.Number, header.Time) {
|
||||
core.ProcessParentBlockHash(header.ParentHash, env.evm)
|
||||
}
|
||||
if miner.chainConfig.IsAmsterdam(header.Number, header.Time) {
|
||||
env.alTracer.OnPreTxExecutionDone()
|
||||
}
|
||||
// TODO: verify that we can make blocks that correctly record the pre-tx system calls
|
||||
// TODO ^ comprehensive miner unit tests
|
||||
return env, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue