From ddb6fec171df98a32bbb57dbfebd436ead779f54 Mon Sep 17 00:00:00 2001 From: keorn Date: Wed, 14 Sep 2016 11:17:39 +0200 Subject: [PATCH] add new test specs --- ethcore/src/spec/spec.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ethcore/src/spec/spec.rs b/ethcore/src/spec/spec.rs index 9334a55d6..8d96ebc07 100644 --- a/ethcore/src/spec/spec.rs +++ b/ethcore/src/spec/spec.rs @@ -266,6 +266,16 @@ 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 AuthorityRound consensus which does internal sealing (not requiring work). + pub fn new_test_round() -> Self { + Spec::load(include_bytes!("../../res/authority_round.json") as &[u8]).expect("authority_round.json is invalid") + } + + /// Create a new Spec with Tendermint consensus which does internal sealing (not requiring work). + pub fn new_test_tendermint() -> Self { + Spec::load(include_bytes!("../../res/tendermint.json") as &[u8]).expect("tendermint.json is invalid") + } } #[cfg(test)]