Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 1c71640

Browse files
committed
Build fixes for Ethash.
1 parent 3cbaf64 commit 1c71640

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/ethash.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ pub struct Ethash {
1111

1212
impl Ethash {
1313
pub fn new_boxed(spec: Spec) -> Box<Engine> {
14-
Box::new(NullEngine{spec: spec})
14+
Box::new(Ethash{spec: spec})
1515
}
1616
}
1717

18-
impl Engine for NullEngine {
18+
impl Engine for Ethash {
1919
fn name(&self) -> &str { "Ethash" }
2020
fn spec(&self) -> &Spec { &self.spec }
2121
fn evm_schedule(&self, _env_info: &EnvInfo) -> EvmSchedule { EvmSchedule::new_frontier() }

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,4 @@ pub mod genesis;
105105
pub mod views;
106106
pub mod blockchain;
107107
pub mod extras;
108+
pub mod ethash;

src/spec.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use account::*;
1717
use engine::Engine;
1818
use builtin::Builtin;
1919
use null_engine::NullEngine;
20+
use ethash::Ethash;
2021
use denominations::*;
2122
use header::*;
2223

0 commit comments

Comments
 (0)