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
{{ message }}
Repository navigation
Commit d4e11c1
Browse filesBrowse the repository at this point in the historyBrowse files
Let out-of-sync nodes step past a detached checkpoint slot
A node that is out of sync learns the network state from peers' SCP-state responses, which carry the most recent slots plus the most recent checkpoint slot, with a gap between them that nothing will ever fill. Each slot is handed to SCP once its tx set is available, so when the checkpoint slot's tx set arrives first the node externalizes that slot and starts tracking it. Tracking mode then only consumes envelopes up to the next slot, which never comes, and the node sat idle until the consensus-stuck timer fired before it looked at the recent slots.
When an out-of-sync node is tracking a slot for which no successor has ever been seen while later slots are ready, stop tracking, hand the smallest later slot to SCP, and drain the ready slots that follow. The lost-sync step matters because the driver rejects values for slots beyond the next tracked one while tracking. In-sync nodes are unaffected.
Add a herder unit test that feeds a watcher externalize envelopes for a checkpoint slot and four later slots in both orders and checks it ends up tracking the latest slot with all five buffered.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
0 commit comments