Improve Lightning Node setup examples (#4033)

* Catch connection string ToString errors

LNDhub connection string error fixed in btcpayserver/BTCPayServer.Lightning#92.

* Add Eclair bitcoin-host example

* Document LNDhub integration
This commit is contained in:
d11n
2022-09-09 16:01:20 +02:00
committed by GitHub
parent 267905b5e7
commit 3532789c35
2 changed files with 45 additions and 4 deletions

View File

@@ -160,7 +160,16 @@ namespace BTCPayServer.Controllers
{
CryptoCode = paymentMethodId.CryptoCode
};
paymentMethod.SetLightningUrl(connectionString);
try
{
paymentMethod.SetLightningUrl(connectionString);
}
catch (Exception ex)
{
ModelState.AddModelError(nameof(vm.ConnectionString), ex.Message);
return View(vm);
}
}
switch (command)