diff --git a/src/ethash.rs b/src/ethash.rs index 26fdc7cc9..27d39bdaa 100644 --- a/src/ethash.rs +++ b/src/ethash.rs @@ -11,11 +11,11 @@ pub struct Ethash { impl Ethash { pub fn new_boxed(spec: Spec) -> Box { - Box::new(NullEngine{spec: spec}) + Box::new(Ethash{spec: spec}) } } -impl Engine for NullEngine { +impl Engine for Ethash { fn name(&self) -> &str { "Ethash" } fn spec(&self) -> &Spec { &self.spec } fn evm_schedule(&self, _env_info: &EnvInfo) -> EvmSchedule { EvmSchedule::new_frontier() } diff --git a/src/lib.rs b/src/lib.rs index e0f80fb70..f426a4b87 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -105,3 +105,4 @@ pub mod genesis; pub mod views; pub mod blockchain; pub mod extras; +pub mod ethash; diff --git a/src/spec.rs b/src/spec.rs index 0550fd409..d7455b072 100644 --- a/src/spec.rs +++ b/src/spec.rs @@ -17,6 +17,7 @@ use account::*; use engine::Engine; use builtin::Builtin; use null_engine::NullEngine; +use ethash::Ethash; use denominations::*; use header::*;