You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(sync): stall headersub until Syncer has started (#317)
A better version of #316. This version should be easier to understand,
but it also addresses a corruption case that I realized #316 doesn't
cover. If, for whatever reason, Tail request during the very first start
takes more time, then the duplicate subjective init, triggered by the
network head from headersub, then the network head will be stored before
tail, breaking the further syncing attempts irrecoverably.
This will be removed with bsync once the requirement to store Tail
before Head is removed.
EDIT:
[f569260](f569260)
completely stalls headersub until started on every start, not just subj
init. During a regular start, a headersub header may frontrun the Start
routine and trigger Tail update first. This is problematic as the node
assumes the Tail is up-to-date after Start finishes, but in the
front-running case, only the headersub routine gets blocked (see #313).
Extensively tested manually.
0 commit comments