diff --git a/ethcore/src/engine.rs b/ethcore/src/engine.rs
index 344144c6e..050d5b499 100644
--- a/ethcore/src/engine.rs
+++ b/ethcore/src/engine.rs
@@ -14,6 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see .
+//! Consensus engine specification
+
use common::*;
use util::keys::store::AccountProvider;
use block::ExecutedBlock;
diff --git a/ethcore/src/lib.rs b/ethcore/src/lib.rs
index 0b62ec4fb..346711327 100644
--- a/ethcore/src/lib.rs
+++ b/ethcore/src/lib.rs
@@ -103,6 +103,7 @@ pub mod trace;
pub mod spec;
pub mod views;
pub mod pod_state;
+pub mod engine;
mod db;
mod common;
@@ -112,7 +113,6 @@ mod env_info;
mod pod_account;
mod account_diff;
mod state_diff;
-mod engine;
mod state;
mod account;
mod account_db;
diff --git a/miner/src/miner.rs b/miner/src/miner.rs
index 33d21613f..e89fe2bf8 100644
--- a/miner/src/miner.rs
+++ b/miner/src/miner.rs
@@ -25,6 +25,8 @@ use ethcore::block::{ClosedBlock, IsBlock};
use ethcore::error::*;
use ethcore::client::{Executive, Executed, EnvInfo, TransactOptions};
use ethcore::transaction::SignedTransaction;
+use ethcore::spec::Spec;
+use ethcore::engine::Engine;
use super::{MinerService, MinerStatus, TransactionQueue, AccountDetails, TransactionImportResult, TransactionOrigin};
/// Keeps track of transactions using priority queue and holds currently mined block.
@@ -39,6 +41,7 @@ pub struct Miner {
gas_floor_target: RwLock,
author: RwLock,
extra_data: RwLock,
+ spec: Spec,
accounts: RwLock