mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Who network type in the conf file of gRPC, fix #246
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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; }
|
||||||
|
|||||||
Reference in New Issue
Block a user