Make sure people does not use launchsettings by mistake

This commit is contained in:
nicolas.dorier
2019-05-15 00:55:15 +09:00
parent eb54a18fcd
commit 8dc4acdc34
2 changed files with 5 additions and 0 deletions

View File

@@ -72,6 +72,9 @@ namespace BTCPayServer.Configuration
DataDir = conf.GetDataDir(NetworkType);
Logs.Configuration.LogInformation("Network: " + NetworkType.ToString());
if (conf.GetOrDefault<bool>("launchsettings", false) && NetworkType != NetworkType.Regtest)
throw new ConfigException($"You need to run BTCPayServer with the run.sh or run.ps1 script");
var supportedChains = conf.GetOrDefault<string>("chains", "btc")
.Split(',', StringSplitOptions.RemoveEmptyEntries)
.Select(t => t.ToUpperInvariant());