mirror of
https://github.com/tendermint/tendermint.git
synced 2026-04-14 12:47:08 +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
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ var (
|
||||
e2e.StateSyncRPC: 45,
|
||||
}
|
||||
nodePersistIntervals = uniformChoice{0, 1, 5}
|
||||
nodeSnapshotIntervals = uniformChoice{0, 5}
|
||||
nodeSnapshotIntervals = uniformChoice{0, 3}
|
||||
nodeRetainBlocks = uniformChoice{
|
||||
0,
|
||||
2 * int(e2e.EvidenceAgeHeight),
|
||||
|
||||
Reference in New Issue
Block a user