mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 02:42:38 +00:00
Correct issue with dialing peers (#2375)
The ordering of adding new peers to the peerdb and deciding when to dial them was not considered in a previous update. This adds the condition that if a peer is not in the peer-db then it is an acceptable peer to dial. This makes #2374 obsolete.
This commit is contained in:
@@ -160,6 +160,7 @@ impl<TSpec: EthSpec> PeerDB<TSpec> {
|
||||
self.connection_status(peer_id),
|
||||
Some(PeerConnectionStatus::Disconnected { .. })
|
||||
| Some(PeerConnectionStatus::Unknown { .. })
|
||||
| None
|
||||
) && !self.is_banned_or_disconnected(peer_id)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user