mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-22 14:22:45 +01:00
WalletTool: automatically use localhost in regtest mode.
This commit is contained in:
parent
a2afe470c2
commit
8392a5590a
1 changed files with 6 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue