Skip to content

Conversation

@hieblmi
Copy link
Contributor

@hieblmi hieblmi commented Sep 11, 2025

Submitting CloseChannel with the NoWait flag leads to error

unknown channel close update: *lnrpc.CloseStatusUpdate_CloseInstant

This update type was introduced as part of the NoWait channel closure implementation in lnd.

@hieblmi hieblmi requested a review from bhandras September 11, 2025 18:28
Copy link
Member

@bhandras bhandras left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@bhandras bhandras requested a review from starius September 11, 2025 18:31
Copy link
Contributor

@starius starius left a comment

Choose a reason for hiding this comment

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

LGTM! 🌿
Added a comment.


// NumberOfPendingHtlcs returns the number of pending htlcs that we have
// present while a channel close with NoWait option was in progress.
func (p *ChannelClosedUpdate) NumberOfPendingHtlcs() int32 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this method needed? The field is public.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, I added it to be consistent with CloseTxid(). I removed it.

@hieblmi hieblmi merged commit 988ca0f into lightninglabs:master Sep 11, 2025
1 check passed
@hieblmi hieblmi deleted the no-wait-update branch September 11, 2025 18:46
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.

3 participants