Simplify hasSufficientPeersForBroadcast method

This commit is contained in:
Manfred Karrer 2018-01-19 20:36:42 -05:00
parent c6691c91a1
commit a64359024e
No known key found for this signature in database
GPG key ID: 401250966A6B2C46

View file

@ -514,7 +514,7 @@ public class WalletsSetup {
}
public boolean hasSufficientPeersForBroadcast() {
return bisqEnvironment.isBitcoinLocalhostNodeRunning() ? true : numPeers.get() >= walletConfig.getMinBroadcastConnections();
return bisqEnvironment.isBitcoinLocalhostNodeRunning() || numPeers.get() >= walletConfig.getMinBroadcastConnections();
}