Skip to content

Commit

Permalink
For dev testing (usually on BTC_REGTEST) we don't want to get the see…
Browse files Browse the repository at this point in the history
…d shut

down as it is normal that the seed is the only actively running node.
  • Loading branch information
chimp1984 committed Dec 4, 2020
1 parent 9e3968e commit 51ab568
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions seednode/src/main/java/bisq/seednode/SeedNodeMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 51ab568

Please sign in to comment.