From 822db6acc26f1a55a0a97bc485ec38ae40a49f40 Mon Sep 17 00:00:00 2001 From: Alex Myers Date: Thu, 9 Feb 2023 17:52:07 -0600 Subject: [PATCH] gossipd: don't resurrect deleted half_chans fixes #5989 Changelog-None --- gossipd/routing.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gossipd/routing.c b/gossipd/routing.c index 3f2d52336..8f6147db9 100644 --- a/gossipd/routing.c +++ b/gossipd/routing.c @@ -1524,7 +1524,8 @@ bool routing_add_channel_update(struct routing_state *rstate, /* Handle resurrection of zombie channels if the other side of the * zombie channel has a recent timestamp. */ if (zombie && timestamp_reasonable(rstate, - chan->half[!direction].bcast.timestamp)) { + chan->half[!direction].bcast.timestamp) && + chan->half[!direction].bcast.index) { status_peer_debug(peer ? &peer->id : NULL, "Resurrecting zombie channel %s.", type_to_string(tmpctx,