From 6b8bebd3b86afb0e39166bde48485ab5b9a63ca7 Mon Sep 17 00:00:00 2001 From: Marcel <153717436+MonkeyMarcel@users.noreply.github.com> Date: Fri, 2 May 2025 12:41:08 +0800 Subject: [PATCH] Update blockchain.go optimism 'if' --- core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index 6667f64911..cb91455dcb 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -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)