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

Properly send reestablish on close channels, do it simpler. #7353

Conversation

rustyrussell
Copy link
Contributor

We used to fire up channeld to send this, but:

  1. That's silly, we have all the information to make it ourselves.
  2. We didn't do it if there was an error on the channel, which as of 24.02
    there always is!
  3. When it did work, running channeld stops onchaind, indefinitely slowing recovery.

Fixes: Blockstream/greenlight#433

@rustyrussell rustyrussell added this to the v24.05 milestone May 29, 2024
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
We used to fire up channeld to send this, but:
1. That's silly, we have all the information to make it ourselves.
2. We didn't do it if there was an error on the channel, which as of 24.02
   there always is!
3. When it did work, running channeld *stops* onchaind, indefinitely slowing recovery.

Fixes: Blockstream/greenlight#433
Changelog-Fixed: Protocol: we once again send CHANNEL_REESTABLISH responses on closing channels.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@rustyrussell rustyrussell force-pushed the guilt/onchaind-restart-htlc-track branch from 5d43030 to e615daf Compare May 29, 2024 06:47
Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

ACK e615daf

Thanks for the semplification

@cdecker
Copy link
Member

cdecker commented May 29, 2024

ACK e615daf

Copy link
Collaborator

@endothermicdev endothermicdev left a comment

Choose a reason for hiding this comment

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

ACK e615daf

@endothermicdev endothermicdev merged commit 1d4783a into ElementsProject:master May 29, 2024
34 of 35 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.

Relai: Sweep is not executed after closed channel
4 participants