babe: make plan_config_change callable (#8233)

This commit is contained in:
André Silva authored and GitHub committed 2021-03-01 15:58:49 +01:00
1 parent 68390d4085
commit 13ef9ad39e
3 files changed
+59 -14

No files matched your search

@@ -23,6 +23,10 @@ use frame_support::weights::{
};
impl crate::WeightInfo for () {
fn plan_config_change() -> Weight {
DbWeight::get().writes(1)
}
fn report_equivocation(validator_count: u32) -> Weight {
// we take the validator set count from the membership proof to
// calculate the weight but we set a floor of 100 validators.