diff --git a/beacon_node/network/src/sync/range_sync/batch.rs b/beacon_node/network/src/sync/range_sync/batch.rs index f8d134750..5e2abc046 100644 --- a/beacon_node/network/src/sync/range_sync/batch.rs +++ b/beacon_node/network/src/sync/range_sync/batch.rs @@ -257,7 +257,7 @@ impl BatchInfo { 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 {