fix tests compilation

This commit is contained in:
keorn
2016-09-29 16:57:52 +01:00
parent d085146254
commit d59e9e816e
5 changed files with 31 additions and 29 deletions

View File

@@ -266,6 +266,12 @@ impl Spec {
pub fn new_test_instant() -> Self {
Spec::load(include_bytes!("../../res/instant_seal.json") as &[u8]).expect("instant_seal.json is invalid")
}
/// Create a new Spec with Tendermint consensus which does internal sealing (not requiring work).
/// Account "0".sha3() and "1".sha3() are a validators.
pub fn new_test_tendermint() -> Self {
Spec::load(include_bytes!("../../res/tendermint.json") as &[u8]).expect("tendermint.json is invalid")
}
}
#[cfg(test)]