From a64359024e743ac266703590f1c8766b94b30ffb Mon Sep 17 00:00:00 2001 From: Manfred Karrer Date: Fri, 19 Jan 2018 20:36:42 -0500 Subject: [PATCH] Simplify hasSufficientPeersForBroadcast method --- core/src/main/java/io/bisq/core/btc/wallet/WalletsSetup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/io/bisq/core/btc/wallet/WalletsSetup.java b/core/src/main/java/io/bisq/core/btc/wallet/WalletsSetup.java index 85ba2ab75e..8e8e8c4467 100644 --- a/core/src/main/java/io/bisq/core/btc/wallet/WalletsSetup.java +++ b/core/src/main/java/io/bisq/core/btc/wallet/WalletsSetup.java @@ -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(); }