Skip to content

Commit

Permalink
Only check for downGrade if we are on mainnet
Browse files Browse the repository at this point in the history
Its a bit annoying for dev testing when switching between release and master...
  • Loading branch information
chimp1984 committed Dec 28, 2020
1 parent 8350f22 commit 6fe19db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/java/bisq/core/app/BisqSetup.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
import bisq.common.app.DevEnv;
import bisq.common.app.Log;
import bisq.common.app.Version;
import bisq.common.config.BaseCurrencyNetwork;
import bisq.common.config.Config;
import bisq.common.util.InvalidVersionException;
import bisq.common.util.Utilities;
Expand Down Expand Up @@ -273,7 +274,8 @@ public void addBisqSetupListener(BisqSetupListener listener) {

public void start() {
// If user tried to downgrade we require a shutdown
if (hasDowngraded(downGradePreventionHandler)) {
if (Config.baseCurrencyNetwork() == BaseCurrencyNetwork.BTC_MAINNET &&
hasDowngraded(downGradePreventionHandler)) {
return;
}

Expand Down

0 comments on commit 6fe19db

Please sign in to comment.