diff --git a/quai/handler.go b/quai/handler.go index ef2e739d1c..25c4fd0ebf 100644 --- a/quai/handler.go +++ b/quai/handler.go @@ -127,9 +127,12 @@ func (h *handler) missingBlockLoop() { if block != nil { h.core.WriteBlock(block.(*types.WorkObjectBlockView).WorkObject) } + h.recentBlockReqCache.Remove(blockRequest.Hash) }() case <-h.missingBlockSub.Err(): return + case <-h.quitCh: + return } } }