pub fn check_synced_to_tip<Tip, SyncStatus>(
    network: &Network,
    latest_chain_tip: Tip,
    sync_status: SyncStatus,
) -> Result<()>
where Tip: ChainTip + Clone + Send + Sync + 'static, SyncStatus: ChainSyncStatus + Clone + Send + Sync + 'static,
Expand description

Returns an error if Zebra is not synced to the consensus chain tip. Returns early with Ok(()) if Proof-of-Work is disabled on the provided network. This error might be incorrect if the local clock is skewed.