pub fn lock_proposal() -> BftTest {
    let mut cases = Vec::new();
    for _ in 0..10 {
        if random::<bool>() {
            cases.push([1, 1, 1, 1, 0, 2]);
        } else {
            cases.push([1, 2, 0, 1, 2, 0]);
        }
        cases.push(SHOULD_NOT_COMMIT);
    }
    cases.push([1, 1, 1, 1, 1, 1]);
    cases.push(SHOULD_COMMIT);
    cases
}
/// A function to generate proposal with lock test cases.
A function to generate proposal with lock test cases.
A function to generate proposal with lock test cases .
pub fn lock_proposal() -> BftTest {
    let mut cases = Vec::new();
    for _ in 0..10 {
        if random::<bool>() {
            cases.push([1, 1, 1, 1, 0, 2]);
        } else {
            cases.push([1, 2, 0, 1, 2, 0]);
        }
        cases.push(SHOULD_NOT_COMMIT);
    }
    cases.push([1, 1, 1, 1, 1, 1]);
    cases.push(SHOULD_COMMIT);
    cases
}
pub fn lock_proposal ( ) -> BftTest { let mut cases = Vec :: new ( ) ; for _ in 0 .. 10 { if random :: < bool > ( ) { cases . push ( [ 1 , 1 , 1 , 1 , 0 , 2 ] ) ; } else { cases . push ( [ 1 , 2 , 0 , 1 , 2 , 0 ] ) ; } cases . push ( SHOULD_NOT_COMMIT ) ; } cases . push ( [ 1 , 1 , 1 , 1 , 1 , 1 ] ) ; cases . push ( SHOULD_COMMIT ) ; cases }
A function to generate proposal with lock test cases.
A function to generate proposal with lock test cases .