fn consensus(&self, round: &HeightRound, count: usize) -> Consensus {
        let validators = self.validators_count(round);

        let minimum = validators > 3;
        let consensus = validators * 2 / 3;

        if !minimum {
            Consensus::Reject
        } else if count > consensus {
            Consensus::Consensus
        } else {
            Consensus::Inconclusive
        }
    }
/// From a round and a count of positive voters, resolves the consensus state.
///
/// Will not evaluate negative voters because this is handled by the protocol timeout.
From a round and a count of positive voters, resolves the consensus state.
Will not evaluate negative voters because this is handled by the protocol timeout.
From a round and a count of positive voters resolves the consensus state . Will not evaluate negative voters because this is handled by the protocol timeout .
fn consensus(&self, round: &HeightRound, count: usize) -> Consensus {
        let validators = self.validators_count(round);
        let minimum = validators > 3;
        let consensus = validators * 2 / 3;
        if !minimum {
            Consensus::Reject
        } else if count > consensus {
            Consensus::Consensus
        } else {
            Consensus::Inconclusive
        }
    }
fn consensus ( & self , round : & HeightRound , count : usize ) -> Consensus { let validators = self . validators_count ( round ) ; let minimum = validators > 3 ; let consensus = validators * 2 / 3 ; if ! minimum { Consensus :: Reject } else if count > consensus { Consensus :: Consensus } else { Consensus :: Inconclusive } }
From a round and a count of positive voters, resolves the consensus state.
From a round and a count of positive voters resolves the consensus state .
&self
round
&HeightRound
count
usize
&self
round
&HeightRound
count
usize