-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LND: Simple channel closing implementation #37
base: master
Are you sure you want to change the base?
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
CloseChannel
method toLndClient
which delegates to the existingLndSwaggerClient.CloseChannelAsync
method.