Skip to content

lndclient: handle CloseInstant update - #244

Merged
hieblmi merged 1 commit into
lightninglabs:masterfrom
hieblmi:no-wait-update
Sep 11, 2025
Merged

lndclient: handle CloseInstant update#244
hieblmi merged 1 commit into
lightninglabs:masterfrom
hieblmi:no-wait-update

Conversation

@hieblmi

@hieblmi hieblmi commented Sep 11, 2025

Copy link
Copy Markdown
Contributor

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

@bhandras bhandras left a comment

Copy link
Copy Markdown
Member

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

@starius starius left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! 🌿
Added a comment.

Comment thread lightning_client.go Outdated

// 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
Copy Markdown
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
Copy Markdown
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