Skip to content

Fix for #8902 - #9394

Open
niftynei wants to merge 3 commits into
ElementsProject:masterfrom
niftynei:nifty/8902-fix
Open

Fix for #8902#9394
niftynei wants to merge 3 commits into
ElementsProject:masterfrom
niftynei:nifty/8902-fix

Conversation

@niftynei

@niftynei niftynei commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

There's two issues identified in #8902. This changeset:

  • adds a test to replicate the issue(s)
  • Adds handling for failure messages from lightningd in the case when the openchannel_signed_cb returns an error
  • Removes the reconnection tracking code from funder

This should resolve both issues identified.

vincenzopalazzo and others added 3 commits August 8, 2026 20:16
…ect BROKEN

Add test_inflight_disconnect_commitment_v2 which triggers a disconnect at
+WIRE_COMMITMENT_SIGNED during a dual-funded open.
The error message in ElementsProject#8902 indicates that we're failing to correctly
parse an error message from lightningd

        lightningd-2 2026-02-16T00:50:21.721Z **BROKEN** 038194b5f32bdf0aa59812c86c4ef7ad2f294104fa027d1ace9b469bb6f88cf37b-dualopend-chan#2: STATUS_FAIL_MASTER_IO: Error parsing 7011: 1b5b50656572206572726f7220776974682050534254207369676e6174757265732e00

The openchannel2_sign_hook_cb in lightningd can return error messages,
not just the DUALOPEND_SEND_TX_SIGS message at this point. We handle
this here.
Issue ElementsProject#8902 demonstrates that there are races conditions ocurring when
we use the peer disconnection notifications.

In theory, we don't actually need to listen for peer disconnects, as we're already
listening for open attempt failures with both the state_change
and the channel_open_failed notifications.

Changelog-None
@madelinevibes madelinevibes added this to the v26.09 milestone Aug 10, 2026
@madelinevibes madelinevibes added the Status::Ready for Review The work has been completed and is now awaiting evaluation or approval. label Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status::Ready for Review The work has been completed and is now awaiting evaluation or approval.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants