Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Aug 1, 2024
1 parent 9ea186a commit 579bf44
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,13 +384,15 @@ fn determine_sync_mode(
if blocks_behind_before_considered_lagging > 0 {
// Otherwise, only wait when the tip is above us, otherwise
// chains with a lower height will never be reorged to.
if network_tip_height > local_tip_height && local_tip_height.saturating_add(blocks_behind_before_considered_lagging) > network_tip_height {
if network_tip_height > local_tip_height &&
local_tip_height.saturating_add(blocks_behind_before_considered_lagging) > network_tip_height
{
info!(
target: LOG_TARGET,
"While we are behind, we are still within {} blocks of them, so we are staying as listening and \
waiting for the propagated blocks",
blocks_behind_before_considered_lagging
);
target: LOG_TARGET,
"While we are behind, we are still within {} blocks of them, so we are staying as listening and \
waiting for the propagated blocks",
blocks_behind_before_considered_lagging
);
return SyncStatus::BehindButNotYetLagging {
local: local.clone(),
network: network.claimed_chain_metadata().clone(),
Expand Down

0 comments on commit 579bf44

Please sign in to comment.