mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 08:51:09 +00:00
srml: babe: add expected block time and epoch duration constants (#3241)
* srml: babe: add expected block time constant * srml: babe: expose epoch duration constant * node: bump spec_version * core: don't use moment type in test-runtime * babe: add docs regarding c parameter
This commit is contained in:
@@ -362,10 +362,12 @@ impl srml_timestamp::Trait for Runtime {
|
||||
|
||||
parameter_types! {
|
||||
pub const EpochDuration: u64 = 6;
|
||||
pub const ExpectedBlockTime: u64 = 10_000;
|
||||
}
|
||||
|
||||
impl srml_babe::Trait for Runtime {
|
||||
type EpochDuration = EpochDuration;
|
||||
type ExpectedBlockTime = ExpectedBlockTime;
|
||||
}
|
||||
|
||||
/// Adds one to the given input and returns the final result.
|
||||
|
||||
Reference in New Issue
Block a user