Disable "add peers from addr message" custom bitcoinj feature when a list of peers is provided.

This commit is contained in:
Oscar Guindzberg 2019-03-27 10:51:29 -03:00
parent 55c54356a1
commit 5f3907caf3

View File

@ -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));