Skip to content

Commit

Permalink
re-request a block if we get a nil return
Browse files Browse the repository at this point in the history
  • Loading branch information
kiltsonfire authored and Djadih committed May 20, 2024
1 parent c73cd5f commit 9bf807d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions quai/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down

0 comments on commit 9bf807d

Please sign in to comment.