mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
gossipd: fix typo in seeker random probe logic.
No point probing past current block. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
0c7c765a28
commit
a88553ea6d
1 changed files with 1 additions and 1 deletions
|
@ -737,7 +737,7 @@ static void probe_random_scids(struct seeker *seeker, size_t num_blocks)
|
|||
} else {
|
||||
seeker->scid_probe_start
|
||||
= pseudorand(seeker->daemon->current_blockheight
|
||||
+ num_blocks);
|
||||
- num_blocks);
|
||||
seeker->scid_probe_end
|
||||
= seeker->scid_probe_start + num_blocks - 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue