mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-24 20:47:17 +00:00
Correct bug in sync (#2615)
A bug that causes failed batches to continually download in a loop is corrected.
This commit is contained in:
parent
be11437c27
commit
00a7ef0036
@ -257,7 +257,7 @@ impl<T: EthSpec, B: BatchConfig> BatchInfo<T, B> {
|
|||||||
self.failed_download_attempts.push(peer);
|
self.failed_download_attempts.push(peer);
|
||||||
}
|
}
|
||||||
self.state = if self.failed_download_attempts.len()
|
self.state = if self.failed_download_attempts.len()
|
||||||
>= B::max_batch_download_attempts as usize
|
>= B::max_batch_download_attempts() as usize
|
||||||
{
|
{
|
||||||
BatchState::Failed
|
BatchState::Failed
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user