Fix: Improve the responsivity of the Reporting page (#6846) (#6841)

This commit is contained in:
Nicolas Dorier
2025-07-17 15:43:32 +09:00
committed by GitHub
parent e83a12d995
commit cd42f1a53d
32 changed files with 887 additions and 202 deletions

View File

@@ -275,5 +275,16 @@ namespace BTCPayServer.Tests
PayTester.Dispose();
TestLogs.LogInformation("BTCPayTester disposed");
}
public RPCClient GetExplorerNode(string cryptoCode) =>
cryptoCode == "BTC" ? ExplorerNode :
cryptoCode == "LTC" ? LTCExplorerNode :
throw new NotSupportedException();
public BTCPayNetwork GetNetwork(string cryptoCode)
=> cryptoCode == "BTC" ? NetworkProvider.GetNetwork<BTCPayNetwork>("BTC") :
cryptoCode == "LTC" ? NetworkProvider.GetNetwork<BTCPayNetwork>("LTC") :
cryptoCode == "LBTC" ? NetworkProvider.GetNetwork<BTCPayNetwork>("LBTC") :
throw new NotSupportedException();
}
}