mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 23:07:57 +00:00
Aura: Remove unused structures and adds SlotDuration::get() (#1565)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user