mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 22:26:42 +00:00
Update blockchain.go
optimism 'if'
This commit is contained in:
parent
701df4baad
commit
6b8bebd3b8
1 changed files with 1 additions and 1 deletions
|
|
@ -1856,7 +1856,7 @@ func (bc *BlockChain) insertChain(chain types.Blocks, setHead bool, makeWitness
|
|||
// If we have a followup block, run that against the current state to pre-cache
|
||||
// transactions and probabilistically some of the account/storage trie nodes.
|
||||
var followupInterrupt atomic.Bool
|
||||
if !bc.cacheConfig.TrieCleanNoPrefetch {
|
||||
if !bc.cacheConfig.TrieCleanNoPrefetch && block.Transactions().Len() > 0 {
|
||||
if followup, err := it.peek(); followup != nil && err == nil {
|
||||
throwaway, _ := state.New(parent.Root, bc.statedb)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue