mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 02:12:00 +01:00
Update logging indicating number of btc nodes
The logged message that indicates the number of btc nodes to connect to was incorrect when only a single node is used in regtest mode.
This commit is contained in:
parent
53cf14791f
commit
ba466d40ee
@ -446,8 +446,9 @@ public class WalletConfig extends AbstractIdleService {
|
||||
// before we're actually connected the broadcast waits for an appropriate number of connections.
|
||||
if (peerAddresses != null) {
|
||||
for (PeerAddress addr : peerAddresses) vPeerGroup.addAddress(addr);
|
||||
log.info("We try to connect to {} btc nodes", numConnectionForBtc);
|
||||
vPeerGroup.setMaxConnections(Math.min(numConnectionForBtc, peerAddresses.length));
|
||||
int maxConnections = Math.min(numConnectionForBtc, peerAddresses.length);
|
||||
log.info("We try to connect to {} btc nodes", maxConnections);
|
||||
vPeerGroup.setMaxConnections(maxConnections);
|
||||
peerAddresses = null;
|
||||
} else if (!params.equals(RegTestParams.get())) {
|
||||
vPeerGroup.addPeerDiscovery(discovery != null ? discovery : new DnsDiscovery(params));
|
||||
|
Loading…
Reference in New Issue
Block a user