Browse Source

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

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

This reverts commit 50b00dff71.
e2e-small-suite
William Banfield 3 years ago
committed by GitHub
parent
commit
cabd916517
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      internal/statesync/reactor.go

+ 3
- 0
internal/statesync/reactor.go 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
}


Loading…
Cancel
Save