consensus-slots: cleanup SlotDuration config (#10878)

* consensus-slots: cleanup the SlotDuration config

* fix tests

* address review comments
This commit is contained in:
André Silva authored and GitHub committed 2022-02-22 19:39:16 +00:00
1 parent f00404bfd6
commit 2561e11ed7
19 files changed
+161 -191

No files matched your search

@@ -327,9 +327,3 @@ impl<Block: BlockT> CanAuthorWith<Block> for NeverCanAuthor {
Err("Authoring is always disabled.".to_string())
}
}
/// A type from which a slot duration can be obtained.
pub trait SlotData {
/// Gets the slot duration.
fn slot_duration(&self) -> sp_std::time::Duration;
}