Browse Source

gossipd: fix typo in seeker random probe logic.

No point probing past current block.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
travis-debug
Rusty Russell 5 years ago
committed by neil saitug
parent
commit
a88553ea6d
  1. 2
      gossipd/seeker.c

2
gossipd/seeker.c

@ -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…
Cancel
Save