docs on authority spec

This commit is contained in:
keorn 2016-09-14 17:28:57 +02:00
parent c482b8ffb6
commit bb59c2288e
1 changed files with 1 additions and 0 deletions

View File

@ -268,6 +268,7 @@ impl Spec {
}
/// Create a new Spec with AuthorityRound consensus which does internal sealing (not requiring work).
/// Accounts with secrets "1".sha3() and "2".sha3() are the authorities.
pub fn new_test_round() -> Self {
Spec::load(include_bytes!("../../res/authority_round.json") as &[u8]).expect("authority_round.json is invalid")
}