Show Lightning node availability in navigation (#5951)

* Show Lightning node availability in navigation

Instead of simply communicating the setup state of the store's LN node, this now also checks its availability.

Closes  #5940.

* Cleanups

* Add Selenium test for public node page and status in nav

* Cache the available lightning node result

---------

Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
This commit is contained in:
d11n
2024-04-26 08:30:34 +02:00
committed by GitHub
parent d3277306cf
commit 8d429f064b
9 changed files with 121 additions and 26 deletions

View File

@@ -5,7 +5,6 @@ using System.Threading.Tasks;
using BTCPayServer.Data;
using BTCPayServer.Filters;
using BTCPayServer.Lightning;
using BTCPayServer.Logging;
using BTCPayServer.Models;
using BTCPayServer.Payments;
using BTCPayServer.Payments.Lightning;
@@ -55,7 +54,6 @@ namespace BTCPayServer.Controllers
try
{
var paymentMethodDetails = store.GetPaymentMethodConfig<LightningPaymentMethodConfig>(pmi, _handlers);
var network = _BtcPayNetworkProvider.GetNetwork<BTCPayNetwork>(cryptoCode);
var nodeInfo = await handler.GetNodeInfo(paymentMethodDetails, null, throws: true);
vm.Available = true;