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:
Rusty Russell 2019-10-10 09:34:17 +10:30 committed by neil saitug
parent 0c7c765a28
commit a88553ea6d

View File

@ -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;
}