mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +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:
parent
e462bd4de0
commit
624b76e32e
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue