pub fn two_byzantine_cases() -> BftTest {
    let mut cases = Vec::new();
    for _ in 0..20 {
        cases.push(rand_two_attribute(BYZANTINE, NORMAL, NORMAL));
        cases.push(SHOULD_NOT_COMMIT);
    }
    cases.push([1, 1, 1, 1, 1, 1]);
    cases.push(SHOULD_COMMIT);
    cases
}
/// A function to generate two byzantine node test cases.
A function to generate two byzantine node test cases.
A function to generate two byzantine node test cases .
pub fn two_byzantine_cases() -> BftTest {
    let mut cases = Vec::new();
    for _ in 0..20 {
        cases.push(rand_two_attribute(BYZANTINE, NORMAL, NORMAL));
        cases.push(SHOULD_NOT_COMMIT);
    }
    cases.push([1, 1, 1, 1, 1, 1]);
    cases.push(SHOULD_COMMIT);
    cases
}
pub fn two_byzantine_cases ( ) -> BftTest { let mut cases = Vec :: new ( ) ; for _ in 0 .. 20 { cases . push ( rand_two_attribute ( BYZANTINE , NORMAL , NORMAL ) ) ; cases . push ( SHOULD_NOT_COMMIT ) ; } cases . push ( [ 1 , 1 , 1 , 1 , 1 , 1 ] ) ; cases . push ( SHOULD_COMMIT ) ; cases }
A function to generate two byzantine node test cases.
A function to generate two byzantine node test cases .