darkfid::task::sync

Function sync_task

Source
pub async fn sync_task(
    node: &DarkfiNodePtr,
    checkpoint: Option<(u32, HeaderHash)>,
) -> Result<()>
Expand description

async task used for block syncing. A checkpoint can be provided to ensure node syncs the correct sequence.