Skip to content

Commit

Permalink
Fix IsInAStickyFullSyncMode
Browse files Browse the repository at this point in the history
  • Loading branch information
benaadams committed May 23, 2023
1 parent df338c8 commit 8b6caa0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ private static string BuildStateString(Snapshot best) =>
private bool IsInAStickyFullSyncMode(Snapshot best)
{
long bestBlock = Math.Max(best.Processed, LastBlockThatEnabledFullSync ?? 0);
bool hasEverBeenInFullSync = bestBlock > _pivotNumber && best.State > _pivotNumber;
bool hasEverBeenInFullSync = bestBlock > 0 && best.State > 0;
long heightDelta = best.TargetBlock - bestBlock;
return hasEverBeenInFullSync && heightDelta < FastSyncCatchUpHeightDelta;
}
Expand Down

0 comments on commit 8b6caa0

Please sign in to comment.