diff --git a/core/state_prefetcher.go b/core/state_prefetcher.go index 4dffe22341..fdc141c474 100644 --- a/core/state_prefetcher.go +++ b/core/state_prefetcher.go @@ -138,9 +138,14 @@ func (p *statePrefetcher) PrefetchMining(txs *types.TransactionsByPriceAndNonce, if tx == nil { return } - txCh <- tx - txset.Shift() + select { + case <-interruptCh: + return + case txCh <- tx: + } + + txset.Shift() } } }(txs)