mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-29 19:25:56 +00:00
p2p: add check for selfID in dialNext
Reduce snapshot interval to 3
This commit is contained in:
@@ -549,7 +549,7 @@ func (m *PeerManager) TryDialNext() NodeAddress {
|
||||
}
|
||||
|
||||
for _, peer := range m.store.Ranked() {
|
||||
if m.dialing[peer.ID] || m.isConnected(peer.ID) {
|
||||
if m.dialing[peer.ID] || m.isConnected(peer.ID) || peer.ID == m.selfID {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user