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
+5 -1
View File
@@ -47,7 +47,6 @@ use inherents::{InherentDataProviders, InherentData, RuntimeString};
use futures::{Stream, Future, IntoFuture, future::{self, Either}};
use tokio::timer::Timeout;
use api::AuraApi;
use slots::Slots;
use ::log::{warn, debug, log, info, trace};
@@ -632,6 +631,11 @@ impl SlotDuration {
}
}
}
/// Returns slot duration value.
pub fn get(&self) -> u64 {
self.0
}
}
/// Register the aura inherent data provider, if not registered already.