Skip to content

Fix unstfu - #9443

Open
rustyrussell wants to merge 2 commits into
ElementsProject:masterfrom
rustyrussell:fix-unstfu
Open

Fix unstfu#9443
rustyrussell wants to merge 2 commits into
ElementsProject:masterfrom
rustyrussell:fix-unstfu

Conversation

@rustyrussell

Copy link
Copy Markdown
Collaborator

Report filed that we don't properly restore commands when exiting STFU. Worst case, this could cause a force close.

kimi added 2 commits August 21, 2026 14:11
While quiescing (STFU), handle_master_request_later queues outgoing
HTLC updates (OFFER/FULFILL/FAIL) and fee/block updates on
peer->update_queue, but no code path ever dequeued it.  Messages were
lost permanently when quiescence ended.

Fix by moving any pending messages onto from_master when end_stfu_mode
runs; the main loop drains from_master via req_in.

Changelog-Fixed: channeld: risk of force close if we settle an HTLC during splice STFU.
Better describes its purpose: messages deferred while quiescing (STFU).
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.

1 participant