mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-19 17:40:42 +00:00
miner: fix panic pre-prague
This commit is contained in:
parent
db68d48081
commit
3e27b31d45
1 changed files with 4 additions and 2 deletions
|
|
@ -200,8 +200,10 @@ func (miner *Miner) generateWork(genParam *generateParams, witness bool) *newPay
|
|||
}
|
||||
postMut.Merge(mut)
|
||||
|
||||
work.accessList.AccumulateMutations(postMut, uint16(work.tcount)+1)
|
||||
work.accessList.AccumulateReads(work.state.Reader().(state.StateReaderTracker).GetStateAccessList())
|
||||
if work.accessList != nil {
|
||||
work.accessList.AccumulateMutations(postMut, uint16(work.tcount)+1)
|
||||
work.accessList.AccumulateReads(work.state.Reader().(state.StateReaderTracker).GetStateAccessList())
|
||||
}
|
||||
}
|
||||
if requests != nil {
|
||||
reqHash := types.CalcRequestsHash(requests)
|
||||
|
|
|
|||
Loading…
Reference in a new issue