mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-23 04:36:50 +00:00
Fixed incorrect minOutboundPeers conditional
This commit is contained in:
@@ -701,8 +701,8 @@ public class Network {
|
||||
}
|
||||
|
||||
public boolean connectPeer(Peer newPeer) throws InterruptedException {
|
||||
// NOT CORRECT:
|
||||
if (getImmutableConnectedPeers().size() >= minOutboundPeers)
|
||||
// Also checked before creating PeerConnectTask
|
||||
if (getImmutableOutboundHandshakedPeers().size() >= minOutboundPeers)
|
||||
return false;
|
||||
|
||||
SocketChannel socketChannel = newPeer.connect();
|
||||
|
Reference in New Issue
Block a user