LND: Simple channel closing implementation#37
Conversation
Adds a `CloseChannel` method to `LndClient` which delegates to the existing `LndSwaggerClient.CloseChannelAsync` method.
|
@NicolasDorier can you review? thanks! |
|
can you ad a test |
|
@NicolasDorier AFAIU there are no tests for opening channels ( |
|
Do not test channel open, test channel close. Look the tests, I setup channel already, just close one of those after. Those LN implementation always break their shit at every update. Without test, this PR will work for 2 months and we would not know it. |
Thanks for the info. Thing is, I looked at the tests and didn't find the channel setup anywhere, can you clarify exactly where's this please? |
|
Hehe, that file is under the namespace I'll have a look, thanks! |
In fact its namespace was BTCPayServer.Lightning.Tests so it was simply misplaced.
Because this way it matches better with the LN API, and is easier to find.
|
@NicolasDorier why is CI not running for the PR? |
|
Somehow was disabled. Can you try to re-commit? |
Not sure if we should add this as the Dispose() method of the test class actually: https://stackoverflow.com/a/33516224/544947
c348dfd to
aea9e9d
Compare
|
does not pass |
|
Yep I know, not sure why, I'll investigate later. |
|
@knocte ^ |
BTCPayServer.Lightning does currently not support closing channels with LND. There is an open PR which implements this feature: btcpayserver/BTCPayServer.Lightning#37 Until this PR is merged we use the compiled DLLs with this feature. Afterwards this commit can be dropped and the Nuget package versions can be updated to the latest version which has the PR merged.
BTCPayServer.Lightning does currently not support closing channels with LND. There is an open PR which implements this feature: btcpayserver/BTCPayServer.Lightning#37 Until this PR is merged we use the compiled DLLs with this feature. Afterwards this commit can be dropped and the Nuget package versions can be updated to the latest version which has the PR merged.
BTCPayServer.Lightning does currently not support closing channels with LND. There is an open PR which implements this feature: btcpayserver/BTCPayServer.Lightning#37 Until this PR is merged we use the compiled DLLs with this feature. Afterwards this commit can be dropped and the Nuget package versions can be updated to the latest version which has the PR merged.
BTCPayServer.Lightning does currently not support closing channels with LND. There is an open PR which implements this feature: btcpayserver/BTCPayServer.Lightning#37 Until this PR is merged we use the compiled DLLs with this feature. Afterwards this commit can be dropped and the Nuget package versions can be updated to the latest version which has the PR merged.
BTCPayServer.Lightning does currently not support closing channels with LND. There is an open PR which implements this feature: btcpayserver/BTCPayServer.Lightning#37 Until this PR is merged we use the compiled DLLs with this feature. Afterwards this commit can be dropped and the Nuget package versions can be updated to the latest version which has the PR merged.
BTCPayServer.Lightning does currently not support closing channels with LND. There is an open PR which implements this feature: btcpayserver/BTCPayServer.Lightning#37 Until this PR is merged we use the compiled DLLs with this feature. Afterwards this commit can be dropped and the Nuget package versions can be updated to the latest version which has the PR merged.
BTCPayServer.Lightning does currently not support closing channels with LND. There is an open PR which implements this feature: btcpayserver/BTCPayServer.Lightning#37 Until this PR is merged we use the compiled DLLs with this feature. Afterwards this commit can be dropped and the Nuget package versions can be updated to the latest version which has the PR merged.
BTCPayServer.Lightning does currently not support closing channels with LND. There is an open PR which implements this feature: btcpayserver/BTCPayServer.Lightning#37 Until this PR is merged we use the compiled DLLs with this feature. Afterwards this commit can be dropped and the Nuget package versions can be updated to the latest version which has the PR merged.
BTCPayServer.Lightning does currently not support closing channels with LND. There is an open PR which implements this feature: btcpayserver/BTCPayServer.Lightning#37 Until this PR is merged we use the compiled DLLs with this feature. Afterwards this commit can be dropped and the Nuget package versions can be updated to the latest version which has the PR merged.
BTCPayServer.Lightning does currently not support closing channels with LND. There is an open PR which implements this feature: btcpayserver/BTCPayServer.Lightning#37 Until this PR is merged we use the compiled DLLs with this feature. Afterwards this commit can be dropped and the Nuget package versions can be updated to the latest version which has the PR merged.
|
This one needs rebasing :) |
|
@aarani do we need this? |
|
I think it would make sense to coordinate it with #84 or integrate the updates there. |
1d37a9c to
edb9ce3
Compare
Adds a
CloseChannelmethod toLndClientwhich delegates to the existingLndSwaggerClient.CloseChannelAsyncmethod.