Skip to main content

take_join

Function take_join 

Source
pub fn take_join(
    collection: &str,
    me: &str,
    entries: Vec<Entry>,
    trusted: &dyn Fn(&str) -> bool,
) -> Result<Chain, JoinNo>
Expand description

The joiner’s side: takes a chain only if every entry verifies, it lists this machine and at least one of its machine members is one this machine itself trusts. The peer that sent it is not taken on its word.