mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-10 01:24:30 +01:00
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 <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
e462bd4de0
commit
624b76e32e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user