Revert "statesync: keep peer despite lightblock query fail (#6692)" (#6696)

* Revert "statesync: keep peer despite lightblock query fail (#6692)"

This reverts commit 50b00dff71.
This commit is contained in:
William Banfield
2021-07-12 15:20:02 -04:00
committed by GitHub
parent 363ea56680
commit cabd916517
+3
View File
@@ -338,6 +338,9 @@ func (r *Reactor) backfill(
if lb == nil {
r.Logger.Info("backfill: peer didn't have block, fetching from another peer", "height", height)
queue.retry(height)
// As we are fetching blocks backwards, if this node doesn't have the block it likely doesn't
// have any prior ones, thus we remove it from the peer list.
r.dispatcher.removePeer(peer)
continue
}