Skip to content

Commit

Permalink
Merge pull request bisq-network#4898 from chimp1984/diable-setupConne…
Browse files Browse the repository at this point in the history
…ctionLossCheck-for-regtest

Dont shut down seed in regtest mode if all connections lost
  • Loading branch information
sqrrm authored Dec 7, 2020
2 parents 74485f0 + 51ab568 commit 4e4d3e7
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 4e4d3e7

Please sign in to comment.