darkfid::task::sync

Function most_common_tip

Source
async fn most_common_tip(
    node: &DarkfiNodePtr,
    last_tip: &HeaderHash,
    checkpoint: Option<(u32, HeaderHash)>,
) -> (u32, Vec<ChannelPtr>)
Expand description

Auxiliary function to ask all peers for their current tip and find the most common one.