mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-08 16:44:22 +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:
committed by
neil saitug
parent
0c7c765a28
commit
a88553ea6d
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user