Decouple BABE from session (#3760)

This commit is contained in:
Robert Habermeier
2019-10-04 14:56:41 +02:00
committed by Hernando Castano
parent 99da0232ee
commit b8e2f8f2d6
5 changed files with 125 additions and 55 deletions
+4
View File
@@ -405,6 +405,10 @@ parameter_types! {
impl srml_babe::Trait for Runtime {
type EpochDuration = EpochDuration;
type ExpectedBlockTime = ExpectedBlockTime;
// there is no actual runtime in this test-runtime, so testing crates
// are manually adding the digests. normally in this situation you'd use
// srml_babe::SameAuthoritiesForever.
type EpochChangeTrigger = srml_babe::ExternalTrigger;
}
/// Adds one to the given input and returns the final result.