split requires_reseal, add test and new test miner

This commit is contained in:
keorn
2016-09-13 12:52:14 +02:00
parent 4bfdeea9e5
commit e41b6c410f
3 changed files with 83 additions and 65 deletions

View File

@@ -260,6 +260,11 @@ impl Spec {
pub fn new_null() -> Self {
Spec::load(include_bytes!("../../res/null.json") as &[u8]).expect("null.json is invalid")
}
/// Create a new Spec with InstantSeal consensus which does internal sealing (not requiring work).
pub fn new_test_instant() -> Self {
Spec::load(include_bytes!("../../res/instant_seal.json") as &[u8]).expect("instant_seal.json is invalid")
}
}
#[cfg(test)]