BaconState cleanup, warnings fixed, and invalid proof of possession induction test added

This commit is contained in:
Grant Wuerker
2018-12-29 17:53:48 -06:00
parent 598562da73
commit c180c6c94f
5 changed files with 30 additions and 26 deletions

View File

@@ -103,21 +103,4 @@ mod tests {
spec.initial_validators.len()
);
}
/*
#[test]
fn test_genesis_bad_validator() {
let mut spec = ChainSpec::foundation();
let random_kp = Keypair::random();
spec.initial_validators[4].proof_of_possession = create_proof_of_possession(&random_kp);
let state = genesis_beacon_state(&spec).unwrap();
assert_eq!(
state.validator_registry.len(),
spec.initial_validators.len() - 1
);
}
*/
}