Skip to main content

Module bootstrap

Module bootstrap 

Source
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§

BootstrapGateResult
Outcome of waiting for the DhtNetworkEvent::BootstrapComplete event.

Functions§

check_bootstrap_drained
Check if bootstrap is drained and update state if so.
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.
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::BootstrapComplete before returning.