mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user