Function massa_bootstrap::client::get_state
source ยท pub fn get_state(
bootstrap_config: &BootstrapConfig,
final_state: Arc<RwLock<dyn FinalStateController>>,
connector: impl BSConnector,
version: Version,
genesis_timestamp: MassaTime,
end_timestamp: Option<MassaTime>,
restart_from_snapshot_at_period: Option<u64>,
interrupted: Arc<(Mutex<bool>, Condvar)>,
massa_metrics: MassaMetrics,
) -> Result<GlobalBootstrapState, BootstrapError>
Expand description
Uses the cond-var pattern to handle sig-int cancellation.
Make sure that the passed in interrupted
shares its Arc
with a sig-int handler setup.