Skip to content

Commit

Permalink
Make epoch sync happen before header sync on AwaitingPeers.
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-near committed Dec 5, 2024
1 parent 6af8e01 commit 76dc815
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions chain/client/src/sync/epoch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -604,9 +604,6 @@ impl EpochSync {
return Ok(());
}
match status {
SyncStatus::AwaitingPeers | SyncStatus::StateSync(_) => {
return Ok(());
}
SyncStatus::EpochSync(status) => {
if status.attempt_time + self.config.timeout_for_epoch_sync < self.clock.now_utc() {
tracing::warn!("Epoch sync from {} timed out; retrying", status.source_peer_id);
Expand Down

0 comments on commit 76dc815

Please sign in to comment.