Function darkfid::task::sync::synced_peers

source ·
async fn synced_peers(
    node: &Darkfid,
    last_tip: &HeaderHash,
    checkpoint: Option<(u32, HeaderHash)>
) -> Result<HashMap<(u32, [u8; 32]), Vec<ChannelPtr>>>
Expand description

Auxiliary function to block until node is connected to at least one synced peer, and retrieve the synced peers tips.