Correct bug in sync (#2615)

A bug that causes failed batches to continually download in a loop is corrected.
This commit is contained in:
Age Manning 2021-09-23 01:32:04 +00:00
parent be11437c27
commit 00a7ef0036

View File

@ -257,7 +257,7 @@ impl<T: EthSpec, B: BatchConfig> BatchInfo<T, B> {
self.failed_download_attempts.push(peer);
}
self.state = if self.failed_download_attempts.len()
>= B::max_batch_download_attempts as usize
>= B::max_batch_download_attempts() as usize
{
BatchState::Failed
} else {