From 51ab5685de7ed23d8eb51ee9023afb09111e0f31 Mon Sep 17 00:00:00 2001 From: chimp1984 Date: Fri, 4 Dec 2020 12:44:19 -0500 Subject: [PATCH] For dev testing (usually on BTC_REGTEST) we don't want to get the seed shut down as it is normal that the seed is the only actively running node. --- seednode/src/main/java/bisq/seednode/SeedNodeMain.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/seednode/src/main/java/bisq/seednode/SeedNodeMain.java b/seednode/src/main/java/bisq/seednode/SeedNodeMain.java index bccdb3a368e..eceaecdafcb 100644 --- a/seednode/src/main/java/bisq/seednode/SeedNodeMain.java +++ b/seednode/src/main/java/bisq/seednode/SeedNodeMain.java @@ -30,6 +30,8 @@ import bisq.common.app.AppModule; import bisq.common.app.Capabilities; import bisq.common.app.Capability; +import bisq.common.config.BaseCurrencyNetwork; +import bisq.common.config.Config; import bisq.common.handlers.ResultHandler; import lombok.extern.slf4j.Slf4j; @@ -147,6 +149,12 @@ public void onRequestCustomBridges() { } private void setupConnectionLossCheck() { + // For dev testing (usually on BTC_REGTEST) we don't want to get the seed shut + // down as it is normal that the seed is the only actively running node. + if (Config.baseCurrencyNetwork() == BaseCurrencyNetwork.BTC_REGTEST) { + return; + } + if (checkConnectionLossTime != null) { return; }