Fix requeue pull for lazy bootstrap (#2825)
It should not allow unlimited requeue, instead check if new pull head was already processed
This commit is contained in:
parent
fe960112b5
commit
0fd46961ff
1 changed files with 1 additions and 1 deletions
|
@ -404,7 +404,7 @@ void nano::bootstrap_connections::requeue_pull (nano::pull_info const & pull_a,
|
|||
{
|
||||
pull.count = attempt_l->lazy_batch_size ();
|
||||
}
|
||||
if (pull.attempts < pull.retry_limit + (pull.processed / nano::bootstrap_limits::requeued_pulls_processed_blocks_factor))
|
||||
if (attempt_l->mode == nano::bootstrap_mode::legacy && (pull.attempts < pull.retry_limit + (pull.processed / nano::bootstrap_limits::requeued_pulls_processed_blocks_factor)))
|
||||
{
|
||||
{
|
||||
nano::lock_guard<std::mutex> lock (mutex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue