forked from Qortal/qortal
Fixed incorrect minOutboundPeers conditional
This commit is contained in:
parent
599877195b
commit
fbe4f3fad8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user