mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Support the new LN lib (#5422)
* Support the new LN lib * fix test * do not cache factories * try without useless userinfo in lnd * Remove monero wallet files * support simpler DI too --------- Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
This commit is contained in:
@@ -156,7 +156,7 @@ namespace BTCPayServer.Controllers.Greenfield
|
||||
.FirstOrDefault(d => d.PaymentId == id);
|
||||
if (existing == null)
|
||||
throw ErrorLightningNodeNotConfiguredForStore();
|
||||
if (existing.GetExternalLightningUrl() is LightningConnectionString connectionString)
|
||||
if (existing.GetExternalLightningUrl() is {} connectionString)
|
||||
{
|
||||
return Task.FromResult(_lightningClientFactory.Create(connectionString, network));
|
||||
}
|
||||
@@ -168,7 +168,7 @@ namespace BTCPayServer.Controllers.Greenfield
|
||||
{
|
||||
throw ErrorShouldBeAdminForInternalNode();
|
||||
}
|
||||
return Task.FromResult(_lightningClientFactory.Create(internalLightningNode, network));
|
||||
return Task.FromResult(internalLightningNode);
|
||||
}
|
||||
throw ErrorLightningNodeNotConfiguredForStore();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user