Function network_clique::manager::direction::should_we_call
source · fn should_we_call(own_id: &[u8], remote_id: &[u8]) -> bool
Expand description
Whether we should call the remote or the other way around. We xor the peer ids and based on the parity of the sum of bits of the result decide whether the caller should be the smaller or greated lexicographically. They are never equal, because cryptography.