Skip to main content

missing_from

Function missing_from 

Source
pub fn missing_from(local: &Offer, remote: &Offer) -> BTreeSet<Hash32>
Expand description

The addresses local is missing relative to remote — the pull set the behind-device requests. This is remote \ local: everything the remote holds that we do not, which is exactly the set to transfer (content-addressing makes anything we already hold a no-op, so the complement doubles as dedup).