3
0
mirror of https://github.com/Qortal/qortal.git synced 2025-02-14 19:25:48 +00:00

Fixed incorrect minOutboundPeers conditional

This commit is contained in:
CalDescent 2022-05-01 14:01:58 +01:00
parent 599877195b
commit fbe4f3fad8

View File

@ -701,8 +701,8 @@ public class Network {
} }
public boolean connectPeer(Peer newPeer) throws InterruptedException { public boolean connectPeer(Peer newPeer) throws InterruptedException {
// NOT CORRECT: // Also checked before creating PeerConnectTask
if (getImmutableConnectedPeers().size() >= minOutboundPeers) if (getImmutableOutboundHandshakedPeers().size() >= minOutboundPeers)
return false; return false;
SocketChannel socketChannel = newPeer.connect(); SocketChannel socketChannel = newPeer.connect();