|
|
@ -8,7 +8,7 @@ import ( |
|
|
|
|
|
|
|
"github.com/pkg/errors" |
|
|
|
|
|
|
|
amino "github.com/tendermint/go-amino" |
|
|
|
"github.com/tendermint/go-amino" |
|
|
|
"github.com/tendermint/tendermint/libs/cmap" |
|
|
|
tmmath "github.com/tendermint/tendermint/libs/math" |
|
|
|
"github.com/tendermint/tendermint/libs/rand" |
|
|
@ -494,6 +494,8 @@ func (r *Reactor) ensurePeers() { |
|
|
|
} |
|
|
|
|
|
|
|
if r.book.NeedMoreAddrs() { |
|
|
|
// 0) Check if banned nodes can be reinstated
|
|
|
|
r.book.ReinstateBadPeers() |
|
|
|
// 1) Pick a random peer and ask for more.
|
|
|
|
peers := r.Switch.Peers().List() |
|
|
|
peersCount := len(peers) |
|
|
|