Skip to content

Commit c43206e

Browse files
committed
lightningd: allow another gossip state transition.
This can definitely happen with zeroconf and the about-to-be-implemented withheld=True: ``` lightningd-1 2025-09-12T13:17:50.848Z **BROKEN** 022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: Illegal gossip state transition: CGOSSIP_WAITING_FOR_SCID->CGOSSIP_CHANNEL_UNANNOUNCED_DYING ``` Signed-off-by: Rusty Russell <[email protected]>
1 parent f284489 commit c43206e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightningd/channel_gossip.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ static struct state_transition allowed_transitions[] = {
9494
"Channel usable (zeroconf) but no scid yet" },
9595
{ CGOSSIP_WAITING_FOR_SCID, CGOSSIP_CHANNEL_DEAD,
9696
"Zeroconf channel closed before funding tx mined" },
97+
{ CGOSSIP_WAITING_FOR_SCID, CGOSSIP_CHANNEL_UNANNOUNCED_DYING,
98+
"Zeroconf channel closing mutually before funding tx" },
9799
{ CGOSSIP_WAITING_FOR_USABLE, CGOSSIP_WAITING_FOR_MATCHING_PEER_SIGS,
98100
"Channel mined, but we haven't got matching announcment sigs from peer" },
99101
{ CGOSSIP_WAITING_FOR_USABLE, CGOSSIP_WAITING_FOR_ANNOUNCE_DEPTH,

0 commit comments

Comments
 (0)