We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3ad601 commit 51c398bCopy full SHA for 51c398b
gossipd/queries.c
@@ -528,7 +528,7 @@ static struct short_channel_id *gather_range(const tal_t *ctx,
528
529
/* Fix up number_of_blocks to avoid overflow. */
530
end_block = first_blocknum + number_of_blocks - 1;
531
- if (end_block <= first_blocknum)
+ if (end_block < first_blocknum)
532
end_block = UINT_MAX;
533
534
/* We keep a `uintmap` of `short_channel_id` to `struct chan *`.
0 commit comments