Skip to content

Commit

Permalink
bugfix: If you dont have a peer from the specific location, ask for p…
Browse files Browse the repository at this point in the history
…ending etx from random peer
  • Loading branch information
gameofpointers committed Sep 6, 2023
1 parent 5c2014e commit 44408be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eth/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,12 @@ func (h *handler) missingPendingEtxsLoop() {
log.Trace("Fetching the missing pending etxs from", "peer", peer.ID(), "hash", hashAndLocation.Hash)
peer.RequestOnePendingEtxs(hashAndLocation.Hash)
}
if len(peersRunningSlice) == 0 {
for _, peer := range h.selectSomePeers() {
log.Trace("Fetching the missing pending etxs from", "peer", peer.ID(), "hash", hashAndLocation.Hash)
peer.RequestOnePendingEtxs(hashAndLocation.Hash)
}
}
case <-h.missingPendingEtxsSub.Err():
return
}
Expand Down

0 comments on commit 44408be

Please sign in to comment.