Function darkfi::rpc::clock_sync::check_clock

source ·
pub async fn check_clock(peers: &[Url]) -> Result<()>
Expand description

This is a very simple check to verify that the system time is correct. Retry loop is used in case discrepancies are found. If all retries fail, system clock is considered invalid. TODO: 1. Add proxy functionality in order not to leak connections