From 85cc221d501d484306ea91550be3dc7bb16917c3 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Thu, 29 Aug 2024 10:47:03 +0900 Subject: [PATCH] Remove obsolete errors --- BTCPayServer.Common/BTCPayNetworkProvider.cs | 5 ----- BTCPayServer.Common/SelectedChains.cs | 7 +------ 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/BTCPayServer.Common/BTCPayNetworkProvider.cs b/BTCPayServer.Common/BTCPayNetworkProvider.cs index c62317a9b..dfa3c028b 100644 --- a/BTCPayServer.Common/BTCPayNetworkProvider.cs +++ b/BTCPayServer.Common/BTCPayNetworkProvider.cs @@ -34,11 +34,6 @@ namespace BTCPayServer Logs logs) { var networksList = networks.ToList(); -#if !ALTCOINS - var onlyBTC = networksList.Count == 1 && networksList.First().IsBTC; - if (!onlyBTC) - throw new ConfigException($"This build of BTCPay Server does not support altcoins. Configured networks: {string.Join(',', networksList.Select(n => n.CryptoCode).ToArray())}"); -#endif _NBXplorerNetworkProvider = nbxplorerNetworkProvider; NetworkType = nbxplorerNetworkProvider.NetworkType; foreach (var network in networksList) diff --git a/BTCPayServer.Common/SelectedChains.cs b/BTCPayServer.Common/SelectedChains.cs index d8d05a77f..7232b5014 100644 --- a/BTCPayServer.Common/SelectedChains.cs +++ b/BTCPayServer.Common/SelectedChains.cs @@ -12,17 +12,12 @@ namespace BTCPayServer { HashSet chains = new HashSet(StringComparer.OrdinalIgnoreCase); bool all = false; - public SelectedChains(IConfiguration configuration, Logs logs) + public SelectedChains(IConfiguration configuration) { foreach (var chain in (configuration["chains"] ?? "btc") .Split(',', StringSplitOptions.RemoveEmptyEntries) .Select(t => t.ToUpperInvariant())) { - if (new[] { "ETH", "USDT20", "FAU" }.Contains(chain, StringComparer.OrdinalIgnoreCase)) - { - logs.Configuration.LogWarning($"'{chain}' is not anymore supported, please remove it from 'chains'"); - continue; - } if (chain == "*") { all = true;