Function zebra_rpc::methods::get_block_template_rpcs::get_block_template::check_synced_to_tip
source ยท pub fn check_synced_to_tip<Tip, SyncStatus>(
network: &Network,
latest_chain_tip: Tip,
sync_status: SyncStatus,
) -> Result<()>
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.