3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 07:12:17 +00:00

WalletTool: automatically use localhost in regtest mode.

This commit is contained in:
Mike Hearn 2014-04-01 16:48:01 +02:00
parent a2afe470c2
commit 8392a5590a

View File

@ -701,7 +701,12 @@ public class WalletTool {
}
}
} else {
peers.addPeerDiscovery(new DnsDiscovery(params));
if (params == RegTestParams.get()) {
log.info("Assuming regtest node on localhost");
peers.addAddress(InetAddress.getLoopbackAddress());
} else {
peers.addPeerDiscovery(new DnsDiscovery(params));
}
}
}