Skip to content

Commit b15100d

Browse files
rustyrussellendothermicdev
authored andcommitted
lightningd: don't complain when gossipd gives us channel_update for dying channel.
It can definitely happen (it's not dead yet): ``` 2025-05-17T08:44:48.9829150Z lightningd-2 2025-05-17T08:36:43.597Z **BROKEN** 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-chan#3: gossipd gave channel_update in CGOSSIP_CHANNEL_ANNOUNCED_DYING? update=01027cf5d46590c45eb608a7e07a7b123c998ac12a655ce11004c9d9bb59f83698e8760d7b992df0dcf925f6732503de55d596aadaa35f0a8837cee58e0769172d2a06226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f00006f00000100006828493f010200060000000000000000000000010000000a000000003b023380 ``` Signed-off-by: Rusty Russell <[email protected]>
1 parent 04ba55d commit b15100d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightningd/channel_gossip.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,13 +1093,14 @@ void channel_gossip_update_from_gossipd(struct channel *channel,
10931093
case CGOSSIP_WAITING_FOR_USABLE:
10941094
case CGOSSIP_CHANNEL_DEAD:
10951095
case CGOSSIP_CHANNEL_UNANNOUNCED_DYING:
1096-
case CGOSSIP_CHANNEL_ANNOUNCED_DYING:
10971096
case CGOSSIP_CHANNEL_ANNOUNCED_DEAD:
10981097
/* Shouldn't happen. */
10991098
log_broken(channel->log,
11001099
"gossipd gave channel_update in %s? update=%s",
11011100
channel_gossip_state_str(channel->channel_gossip->state),
11021101
tal_hex(tmpctx, channel_update));
1102+
/* fall thru */
1103+
case CGOSSIP_CHANNEL_ANNOUNCED_DYING:
11031104
if (taken(channel_update))
11041105
tal_free(channel_update);
11051106
return;

0 commit comments

Comments
 (0)