diff --git a/core/src/main/java/bisq/core/btc/nodes/BtcNetworkConfig.java b/core/src/main/java/bisq/core/btc/nodes/BtcNetworkConfig.java index c202558cea..cf37e35e9b 100644 --- a/core/src/main/java/bisq/core/btc/nodes/BtcNetworkConfig.java +++ b/core/src/main/java/bisq/core/btc/nodes/BtcNetworkConfig.java @@ -29,6 +29,7 @@ import com.runjva.sourceforge.jsocks.protocol.Socks5Proxy; +import java.util.Collections; import java.util.List; import org.slf4j.Logger; @@ -56,7 +57,8 @@ public BtcNetworkConfig(WalletConfig delegate, NetworkParameters parameters, int public void proposePeers(List peers) { if (!peers.isEmpty()) { log.info("You connect with peerAddresses: {}", peers); - PeerAddress[] peerAddresses = peers.toArray(new PeerAddress[peers.size()]); + Collections.shuffle(peers); + PeerAddress[] peerAddresses = peers.toArray(new PeerAddress[0]); delegate.setPeerNodes(peerAddresses); } else if (proxy != null) { if (log.isWarnEnabled()) {