Add BTCPayServerEnvironment.Altcoins

This commit is contained in:
nicolas.dorier
2020-07-30 22:06:54 +09:00
parent 2c26d55813
commit bce1345ccc

View File

@@ -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}");