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

Break ClosureReason::CommitmentTxConfirmed Up Somewhat #1488

Closed
TheBlueMatt opened this issue May 18, 2022 · 4 comments
Closed

Break ClosureReason::CommitmentTxConfirmed Up Somewhat #1488

TheBlueMatt opened this issue May 18, 2022 · 4 comments
Labels
good first issue Good for newcomers
Milestone

Comments

@TheBlueMatt
Copy link
Collaborator

If an HTLC times out and we close a channel from the ChannelMonitor, we currently mark the ClosureReason as CommitmentTxConfirmed, even though the commitment tx has not yet confirmed, not to mention it was us who closed the channel! From a cursory glance, the fix is trivial - just interpret (and maybe rename) MonitorEvent::CommitmentTxConfirmed to mean "we force-closed" and then we can think about adding more detail, but I think its literally always due to HTLC timeouts.

@TheBlueMatt TheBlueMatt added the good first issue Good for newcomers label May 18, 2022
@colinh80
Copy link

colinh80 commented Jun 7, 2022

Hi, is the idea to decide on a more fitting name and replace all uses of CommitmentTxConfirmed with the new name? As well as reinterpret the note on CommitmentTxConfirmed in the Monitor Event enum?

I'm also curious about MonitorEvent::FundingTimedOut. I don't see it used anywhere but it seems more appropriate for HTLC time outs

@TheBlueMatt
Copy link
Collaborator Author

Hi, is the idea to decide on a more fitting name and replace all uses of CommitmentTxConfirmed with the new name?

No, the existing uses of it are fine, its only the MonitorEvent::CommitmentTxConfirmed case that needs changing.

I'm also curious about MonitorEvent::FundingTimedOut. I don't see it used anywhere but it seems more appropriate for HTLC time outs

No, this is about the funding not confirming in enough time, not us force-closing. Currently ProcessingError is what we use for "we force-closed".

@TheBlueMatt TheBlueMatt added this to the 0.0.117 milestone May 26, 2023
@TheBlueMatt TheBlueMatt modified the milestones: 0.0.117, 0.0.118 Aug 31, 2023
@TheBlueMatt TheBlueMatt modified the milestones: 0.0.118, 0.0.119 Oct 12, 2023
@TheBlueMatt TheBlueMatt modified the milestones: 0.0.119, 0.1.1 Nov 5, 2023
@Mirebella
Copy link
Contributor

Is this still open? Looks like a96e2fe commit and #2887 in "assesment against linked issues" section might have already addressed it.

@TheBlueMatt
Copy link
Collaborator Author

Yep, I think this is fixed, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants