Aura: Remove unused structures and adds SlotDuration::get() (#1565)

This commit is contained in:
Bastian Köcher
2019-01-25 11:56:46 +01:00
committed by Gav Wood
parent 27a882bfac
commit b187695af7
6 changed files with 17 additions and 35 deletions
+1 -2
View File
@@ -67,7 +67,6 @@ pub use primitives::hash::H256;
use primitives::{Ed25519AuthorityId, OpaqueMetadata};
#[cfg(any(feature = "std", test))]
use runtime_version::NativeVersion;
use consensus_aura::api as aura_api;
use inherents::{CheckInherentsResult, InherentData};
/// Test runtime version.
@@ -278,7 +277,7 @@ impl_runtime_apis! {
}
}
impl aura_api::AuraApi<Block> for Runtime {
impl consensus_aura::AuraApi<Block> for Runtime {
fn slot_duration() -> u64 { 1 }
}
}