3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 23:32:16 +00:00

WalletAppKit: set max connections to size of set peer addresses so localhost broadcast works.

This commit is contained in:
Mike Hearn 2014-04-30 14:10:37 +02:00
parent e4af9a673f
commit 1628bf6329

View File

@ -252,6 +252,7 @@ public class WalletAppKit extends AbstractIdleService {
// before we're actually connected the broadcast waits for an appropriate number of connections. // before we're actually connected the broadcast waits for an appropriate number of connections.
if (peerAddresses != null) { if (peerAddresses != null) {
for (PeerAddress addr : peerAddresses) vPeerGroup.addAddress(addr); for (PeerAddress addr : peerAddresses) vPeerGroup.addAddress(addr);
vPeerGroup.setMaxConnections(peerAddresses.length);
peerAddresses = null; peerAddresses = null;
} else { } else {
vPeerGroup.addPeerDiscovery(new DnsDiscovery(params)); vPeerGroup.addPeerDiscovery(new DnsDiscovery(params));