mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 15:22:16 +00:00
WalletTool: automatically use localhost in regtest mode.
This commit is contained in:
parent
a2afe470c2
commit
8392a5590a
@ -700,10 +700,15 @@ public class WalletTool {
|
|||||||
System.exit(1);
|
System.exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (params == RegTestParams.get()) {
|
||||||
|
log.info("Assuming regtest node on localhost");
|
||||||
|
peers.addAddress(InetAddress.getLoopbackAddress());
|
||||||
} else {
|
} else {
|
||||||
peers.addPeerDiscovery(new DnsDiscovery(params));
|
peers.addPeerDiscovery(new DnsDiscovery(params));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private static void syncChain() {
|
private static void syncChain() {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user