From 624b76e32e392451737abe30ec0c92338f5c8ff2 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 15 Oct 2019 15:56:14 +1030 Subject: [PATCH] gossipd: fix stale scid query. We always ended up sending an empty query when we had stale scids! And it turns out we consider such a query invalid: Bad query_short_channel_ids query_flags 010506226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f000100010100 Signed-off-by: Rusty Russell --- gossipd/seeker.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gossipd/seeker.c b/gossipd/seeker.c index 5e074a830..ba2ac2ed5 100644 --- a/gossipd/seeker.c +++ b/gossipd/seeker.c @@ -358,6 +358,7 @@ static struct short_channel_id *stale_scids_remove(const tal_t *ctx, (*query_flags)[i] = *qf; uintmap_del(&seeker->stale_scids, scid); tal_free(qf); + i++; } tal_resize(&scids, i); tal_resize(query_flags, i);