Only check for downGrade if we are on mainnet

Its a bit annoying for dev testing when switching between release and master...
This commit is contained in:
chimp1984 2020-12-27 23:38:17 -05:00
parent 8350f22c0f
commit 6fe19db233
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3

View File

@ -51,6 +51,7 @@ import bisq.common.UserThread;
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;
@ -273,7 +274,8 @@ public class BisqSetup {
public void start() {
// If user tried to downgrade we require a shutdown
if (hasDowngraded(downGradePreventionHandler)) {
if (Config.baseCurrencyNetwork() == BaseCurrencyNetwork.BTC_MAINNET &&
hasDowngraded(downGradePreventionHandler)) {
return;
}