add a slot-duration getter to babe config (#7793)

This commit is contained in:
Robert Habermeier authored and GitHub committed 2020-12-28 10:46:47 +00:00
1 parent de5fc56f6c
commit 6cd8a45292
1 file changed
+5
@@ -342,6 +342,11 @@ impl Config {
}
}
}
/// Get the inner slot duration, in milliseconds.
pub fn slot_duration(&self) -> u64 {
self.0.slot_duration()
}
}
impl std::ops::Deref for Config {