Skip to content

Commit 00a7ef0

Browse files
committed
Correct bug in sync (#2615)
A bug that causes failed batches to continually download in a loop is corrected.
1 parent be11437 commit 00a7ef0

File tree

1 file changed

+1
-1
lines changed
  • beacon_node/network/src/sync/range_sync

1 file changed

+1
-1
lines changed

beacon_node/network/src/sync/range_sync/batch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ impl<T: EthSpec, B: BatchConfig> BatchInfo<T, B> {
257257
self.failed_download_attempts.push(peer);
258258
}
259259
self.state = if self.failed_download_attempts.len()
260-
>= B::max_batch_download_attempts as usize
260+
>= B::max_batch_download_attempts() as usize
261261
{
262262
BatchState::Failed
263263
} else {

0 commit comments

Comments
 (0)