diff --git a/tools/src/main/java/com/google/bitcoin/tools/WalletTool.java b/tools/src/main/java/com/google/bitcoin/tools/WalletTool.java index eef9de2d..2015aa62 100644 --- a/tools/src/main/java/com/google/bitcoin/tools/WalletTool.java +++ b/tools/src/main/java/com/google/bitcoin/tools/WalletTool.java @@ -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)); + } } }