mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-09 00:04:20 +01:00
Add BTCPayServerEnvironment.Altcoins
This commit is contained in:
@@ -22,6 +22,12 @@ namespace BTCPayServer.Services
|
||||
#else
|
||||
Build = "Release";
|
||||
#endif
|
||||
#if ALTCOINS
|
||||
AltcoinsVersion = true;
|
||||
#else
|
||||
AltcoinsVersion = false;
|
||||
#endif
|
||||
|
||||
Environment = env;
|
||||
NetworkType = provider.NetworkType;
|
||||
this.torServices = torServices;
|
||||
@@ -46,6 +52,7 @@ namespace BTCPayServer.Services
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
public bool AltcoinsVersion { get; set; }
|
||||
|
||||
public bool IsDevelopping
|
||||
{
|
||||
@@ -72,9 +79,8 @@ namespace BTCPayServer.Services
|
||||
{
|
||||
StringBuilder txt = new StringBuilder();
|
||||
txt.Append($"@Copyright BTCPayServer v{Version}");
|
||||
#if ALTCOINS
|
||||
txt.Append($" (altcoins)");
|
||||
#endif
|
||||
if (AltcoinsVersion)
|
||||
txt.Append($" (altcoins)");
|
||||
if (!Environment.IsProduction() || !Build.Equals("Release", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
txt.Append($" Environment: {Environment.EnvironmentName} Build: {Build}");
|
||||
|
||||
Reference in New Issue
Block a user