add spec
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
//! Parameters for a block chain.
|
||||
|
||||
use common::*;
|
||||
use engines::{Engine, NullEngine, InstantSeal, BasicAuthority};
|
||||
use engines::{Engine, NullEngine, InstantSeal, BasicAuthority, BFT};
|
||||
use pod_state::*;
|
||||
use account_db::*;
|
||||
use super::genesis::Genesis;
|
||||
@@ -139,6 +139,7 @@ impl Spec {
|
||||
ethjson::spec::Engine::InstantSeal => Arc::new(InstantSeal::new(params, builtins)),
|
||||
ethjson::spec::Engine::Ethash(ethash) => Arc::new(ethereum::Ethash::new(params, From::from(ethash.params), builtins)),
|
||||
ethjson::spec::Engine::BasicAuthority(basic_authority) => Arc::new(BasicAuthority::new(params, From::from(basic_authority.params), builtins)),
|
||||
ethjson::spec::Engine::BFT(bft) => Arc::new(BFT::new(params, From::from(bft.params), builtins)),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user