mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Disable "add peers from addr message" custom bitcoinj feature when a list of peers is provided.
This commit is contained in:
parent
55c54356a1
commit
5f3907caf3
@ -437,6 +437,7 @@ public class WalletConfig extends AbstractIdleService {
|
||||
int maxConnections = Math.min(numConnectionForBtc, peerAddresses.length);
|
||||
log.info("We try to connect to {} btc nodes", maxConnections);
|
||||
vPeerGroup.setMaxConnections(maxConnections);
|
||||
vPeerGroup.setAddPeersFromAddressMessage(false);
|
||||
peerAddresses = null;
|
||||
} else if (!params.equals(RegTestParams.get())) {
|
||||
vPeerGroup.addPeerDiscovery(discovery != null ? discovery : new DnsDiscovery(params));
|
||||
|
Loading…
Reference in New Issue
Block a user