pub async fn get_hash_seq_and_sizes(
connection: &Connection,
hash: &Hash,
max_size: u64,
_progress: Option<Sender<u64>>,
) -> GetResult<(HashSeq, Arc<[u64]>)>
Expand description
Given a hash of a hash seq, get the hash seq and the verified sizes of its children.
If this operation succeeds we have a strong indication that the peer has the hash seq and the last chunk of each child.
This can be used to compute the total size when requesting a hash seq.