mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-22 11:46:20 +00:00
add a slot-duration getter to babe config (#7793)
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user