Skip to content
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

Fix error when closing Core Lightning channels #934

Merged
merged 5 commits into from
Jul 15, 2024

Conversation

kelvinator07
Copy link
Contributor

@kelvinator07 kelvinator07 commented Jul 8, 2024

Closes #935

Description

  • Used channel ID for Core lightning.
  • Added unilaterally property with a value of 1 millisecond to the request body for closeChannel method.

Steps to Test

  1. Create a network with the default selection (1 LND, 1 CLN, 1 Eclair, 1 Bitcoin Core nodes).
  2. Start the network and create a channel using CLN as the originating node.
  3. Close the channel by right-clicking on the channel link or using the Close channel button from the sidebar channel details menu.

@jamaljsr
Copy link
Owner

Hey @kelvinator07, thanks so much for finding this issue.

Do you think you'll have this PR ready in the next couple of days? I am pretty close to shipping a new release and would like to have this issue resolved before then. If you don't have the time to finish this then I can take it over to ensure it's included in the next release.

@kelvinator07 kelvinator07 marked this pull request as ready for review July 11, 2024 15:20
Copy link

codecov bot commented Jul 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (1169a7b) to head (475e4ea).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #934   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          151       151           
  Lines         5490      5489    -1     
  Branches      1104      1104           
=========================================
- Hits          5490      5489    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kelvinator07
Copy link
Contributor Author

Hi @jamaljsr, The PR is now ready for review. Thanks

@jamaljsr jamaljsr self-requested a review July 12, 2024 00:10
Copy link
Owner

@jamaljsr jamaljsr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix. I tested it and it works as expected. I just have some feedback on some of the implementation details.

src/components/designer/link/Channel.spec.tsx Outdated Show resolved Hide resolved
src/components/designer/link/Channel.spec.tsx Outdated Show resolved Hide resolved
src/lib/lightning/clightning/clightningService.ts Outdated Show resolved Hide resolved
@kelvinator07 kelvinator07 requested a review from jamaljsr July 12, 2024 17:10
Copy link
Owner

@jamaljsr jamaljsr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for those answers. This looks almost ready. I just left one remaining suggestion on the unit test changes that I think can be improved.

src/components/designer/link/Channel.spec.tsx Outdated Show resolved Hide resolved
src/lib/lightning/clightning/clightningService.ts Outdated Show resolved Hide resolved
@kelvinator07 kelvinator07 force-pushed the cln-channel-fix branch 2 times, most recently from a0463e3 to 3821f1f Compare July 12, 2024 21:13
@kelvinator07 kelvinator07 requested a review from jamaljsr July 13, 2024 00:03
Copy link
Owner

@jamaljsr jamaljsr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates. This looks good to go now 👌

@jamaljsr jamaljsr changed the title Core lightning channel fix Fix error when closing Core Lightning channels Jul 15, 2024
@jamaljsr jamaljsr merged commit 2eab0c4 into jamaljsr:master Jul 15, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Unable to close channel initiated by Core Lightning node
2 participants