From 51c398b4c3de71b1a72cd2eaca63a58d89d61c12 Mon Sep 17 00:00:00 2001 From: niftynei Date: Thu, 18 Mar 2021 15:56:19 -0500 Subject: [PATCH] gossip: allow us to only look at 1 block Breaks a lnprototest otherwise! --- gossipd/queries.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gossipd/queries.c b/gossipd/queries.c index 2ae67cd9e..afc2422cd 100644 --- a/gossipd/queries.c +++ b/gossipd/queries.c @@ -528,7 +528,7 @@ static struct short_channel_id *gather_range(const tal_t *ctx, /* Fix up number_of_blocks to avoid overflow. */ end_block = first_blocknum + number_of_blocks - 1; - if (end_block <= first_blocknum) + if (end_block < first_blocknum) end_block = UINT_MAX; /* We keep a `uintmap` of `short_channel_id` to `struct chan *`.