Disable internal node options if no internal node configured (#4315)

This commit is contained in:
Nicolas Dorier
2022-11-20 14:22:36 +09:00
committed by GitHub
parent 2bd4a680ad
commit 1e2acfb296
3 changed files with 9 additions and 5 deletions

View File

@@ -64,6 +64,7 @@ namespace BTCPayServer.Controllers
IFileService fileService,
WebhookSender webhookNotificationManager,
IDataProtectionProvider dataProtector,
IOptions<LightningNetworkOptions> lightningNetworkOptions,
IOptions<ExternalServicesOptions> externalServiceOptions)
{
_RateFactory = rateFactory;
@@ -80,6 +81,7 @@ namespace BTCPayServer.Controllers
_fileService = fileService;
DataProtector = dataProtector.CreateProtector("ConfigProtector");
WebhookNotificationManager = webhookNotificationManager;
LightningNetworkOptions = lightningNetworkOptions.Value;
_EventAggregator = eventAggregator;
_NetworkProvider = networkProvider;
_ExplorerProvider = explorerProvider;
@@ -111,6 +113,7 @@ namespace BTCPayServer.Controllers
public string? GeneratedPairingCode { get; set; }
public WebhookSender WebhookNotificationManager { get; }
public LightningNetworkOptions LightningNetworkOptions { get; }
public IDataProtector DataProtector { get; }
[TempData]