Skip to content

Commit

Permalink
Add back other conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
benaadams committed May 19, 2023
1 parent 443f9e6 commit c41edad
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,8 @@ private bool ShouldBeInStateSyncMode(Snapshot best)
bool notInFastSync = !best.IsInFastSync;
bool notNeedToWaitForHeaders = NotNeedToWaitForHeaders;
bool stickyStateNodes = best.TargetBlock - best.Header < (FastSyncLag + StickyStateNodesDelta);
bool stateNotDownloadedYet = best.State <= 0;
bool stateNotDownloadedYet = best.State <= 0 ||
(best.Header > best.State && best.Header > best.Block);
bool notInAStickyFullSync = !IsInAStickyFullSyncMode(best);
bool notHasJustStartedFullSync = !HasJustStartedFullSync(best);

Expand Down

0 comments on commit c41edad

Please sign in to comment.