Who network type in the conf file of gRPC, fix #246

This commit is contained in:
nicolas.dorier
2018-08-12 16:19:18 +09:00
parent 86ca081030
commit 29513d4ded
2 changed files with 2 additions and 0 deletions

View File

@@ -470,6 +470,7 @@ namespace BTCPayServer.Controllers
LightningConfigurations confs = new LightningConfigurations(); LightningConfigurations confs = new LightningConfigurations();
LightningConfiguration conf = new LightningConfiguration(); LightningConfiguration conf = new LightningConfiguration();
conf.Type = "grpc"; conf.Type = "grpc";
conf.ChainType = _Options.NetworkType.ToString();
conf.CryptoCode = cryptoCode; conf.CryptoCode = cryptoCode;
conf.Host = external.BaseUri.DnsSafeHost; conf.Host = external.BaseUri.DnsSafeHost;
conf.Port = external.BaseUri.Port; conf.Port = external.BaseUri.Port;

View File

@@ -43,6 +43,7 @@ namespace BTCPayServer.Services
} }
public class LightningConfiguration public class LightningConfiguration
{ {
public string ChainType { get; set; }
public string Type { get; set; } public string Type { get; set; }
public string CryptoCode { get; set; } public string CryptoCode { get; set; }
public string Host { get; set; } public string Host { get; set; }