Expand description
New-node bootstrap logic (Section 16).
A joining node performs active sync to discover and verify keys it should hold, then transitions to normal operation once all bootstrap work drains.
Enums§
- Bootstrap
Gate Result - Outcome of waiting for the
DhtNetworkEvent::BootstrapCompleteevent.
Functions§
- check_
bootstrap_ drained - Check if bootstrap is drained and update state if so.
- clear_
capacity_ rejected - Mark
source’s outstanding capacity rejections as cleared. - decrement_
pending_ requests - Decrement the pending peer request counter (saturating).
- increment_
pending_ requests - Increment the pending peer request counter.
- mark_
bootstrap_ drained - Mark bootstrap as complete, updating the shared state.
- note_
capacity_ rejected - Record that
sourcehad one or more hints capacity-rejected this cycle. - track_
discovered_ keys - Record a set of discovered keys into the bootstrap state for drain tracking.
- wait_
for_ bootstrap_ complete - Wait for saorsa-core’s
DhtNetworkEvent::BootstrapCompletebefore returning.