BTCPayServer.Lightning icon indicating copy to clipboard operation
BTCPayServer.Lightning copied to clipboard

Client library for lightning network implementations to build Lightning Network Apps in C#.

Results 14 BTCPayServer.Lightning issues
Sort by recently updated
recently updated
newest added

Fixes race condition mentioned in #148 and also a potential issue when token is cancelled not releasing semaphore during `await Task.Delay(2500, _cts.Token);` possibly causing issues.

Adds a `CloseChannel` method to `LndClient` which delegates to the existing `LndSwaggerClient.CloseChannelAsync` method.

Eclair requires an update, as the version we're currently using was released over a year ago. They've recently released an updated latest image, which you can find here: https://hub.docker.com/r/acinq/eclair/tags. With...

Wallet providers with outsized view of the network (custodial wallets such as Wallet of Satoshi, or providers that handle routing, such as Phoenix Wallet -> acinq) can determine a btcpayserver's...

Currently e.g. Acinq is generating invoices in their Phoenix wallet that advertises with a [placeholder feature bit `149`](https://github.com/ACINQ/eclair/blob/afdaf4619d9510a5f064b9cd9c308ffbf43a4878/eclair-core/src/main/scala/fr/acinq/eclair/Features.scala#L273-L282) for [trampoline support](https://twitter.com/acinq_co/status/1584999982951960576?t=E_ndQfFjrjQW0FWKJNwYIg&s=19). Parsing a Bolt11 invoice with this feature bit set...

GetBalance functionality for LND implementation returns incorrect OnChainBalance. LND REST API Reference in /v1/balance/blockchain gets balance in sats, but in src/BTCPayServer.Lightning.LND/LndClient.cs Ln 418 amount returned from SwaggerClient is not converted...

Maybe it will be more correct to change ConnectionResult enum from: public enum ConnectionResult { Ok, CouldNotConnect } to public enum ConnectionResult { Unknown = 0, Ok = 1, CouldNotConnect...

Source: https://github.com/lightningnetwork/lnd/blob/master/lnrpc/lightning.swagger.json For example, paging parameters for the "listinvoices" function are missing: ```json { "/v1/invoices": { "get": { "summary": "lncli: `listinvoices`\nListInvoices returns a list of all the invoices currently stored...