mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 00:51:06 +00:00
add a slot-duration getter to babe config (#7793)
This commit is contained in:
committed by
GitHub
parent
de5fc56f6c
commit
6cd8a45292
@@ -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 {
|
impl std::ops::Deref for Config {
|
||||||
|
|||||||
Reference in New Issue
Block a user