Skip to content

Commit 51c398b

Browse files
niftyneirustyrussell
authored andcommitted
gossip: allow us to only look at 1 block
Breaks a lnprototest otherwise!
1 parent e3ad601 commit 51c398b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gossipd/queries.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ static struct short_channel_id *gather_range(const tal_t *ctx,
528528

529529
/* Fix up number_of_blocks to avoid overflow. */
530530
end_block = first_blocknum + number_of_blocks - 1;
531-
if (end_block <= first_blocknum)
531+
if (end_block < first_blocknum)
532532
end_block = UINT_MAX;
533533

534534
/* We keep a `uintmap` of `short_channel_id` to `struct chan *`.

0 commit comments

Comments
 (0)