mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 15:22:16 +00:00
WalletAppKit: set max connections to size of set peer addresses so localhost broadcast works.
This commit is contained in:
parent
e4af9a673f
commit
1628bf6329
@ -252,6 +252,7 @@ public class WalletAppKit 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);
|
||||
vPeerGroup.setMaxConnections(peerAddresses.length);
|
||||
peerAddresses = null;
|
||||
} else {
|
||||
vPeerGroup.addPeerDiscovery(new DnsDiscovery(params));
|
||||
|
Loading…
Reference in New Issue
Block a user