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:
André Silva authored and Gavin Wood committed 2019-07-30 13:39:33 +08:00
1 parent 20eb52d6bb
commit 483ad60379
5 files changed
+27 -6

No files matched your search

+2
View File
@@ -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.