darkfid::task::sync

Function retrieve_headers

Source
async fn retrieve_headers(
    node: &DarkfiNodePtr,
    peers: &[ChannelPtr],
    last_known: u32,
    tip_height: u32,
) -> Result<()>
Expand description

Auxiliary function to retrieve headers backwards until our last known one and verify them.