gossip: allow us to only look at 1 block

Breaks a lnprototest otherwise!
This commit is contained in:
niftynei
2021-03-18 15:56:19 -05:00
committed by Rusty Russell
parent e3ad60150d
commit 51c398b4c3

View File

@@ -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 *`.