Function darkfid::task::sync::most_common_tip

source ·
async fn most_common_tip(
    node: &Darkfid,
    last_tip: &HeaderHash,
    checkpoint: Option<(u32, HeaderHash)>
) -> Result<(u32, Vec<ChannelPtr>)>
Expand description

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