Skip to content

lightningd: only resend announcement_signatures for a channel we announce - #86

Merged
kwsantiago merged 1 commit into
blake2b-unifiedfrom
reestablish-sigs-gate
Oct 31, 2026
Merged

kwsantiago merged 1 commit into
blake2b-unifiedfrom
reestablish-sigs-gate

Conversation

@kwsantiago

Copy link
Copy Markdown

A peer can ask for our announcement_signatures again through the retransmit_flags of my_current_funding_locked in channel_reestablish. lightningd now answers that request only in the gossip states where it sends its signatures on its own (waiting for the peer's signatures, waiting for announce depth, announced), and ignores it for channels that are private or not yet confirmed.

channeld gets a developer-mode hook, CLN_DEV_REQUEST_ANNOUNCEMENT_SIGS, so tests can make our node set the flag the way other implementations do. The new tests cover unconfirmed, zeroconf and private channels, which get no signatures, and an announced channel, which still gets them.

Changelog-None

@kwsantiago
kwsantiago merged commit 8ae1d34 into blake2b-unified Oct 31, 2026
88 of 90 checks passed
@kwsantiago
kwsantiago deleted the reestablish-sigs-gate branch October 31, 2026 18:49
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