pub async fn sync_task( node: &DarkfiNodePtr, checkpoint: Option<(u32, HeaderHash)>, ) -> Result<()>
async task used for block syncing. A checkpoint can be provided to ensure node syncs the correct sequence.