babe: make plan_config_change callable (#8233)

This commit is contained in:
André Silva
2021-03-01 14:58:49 +00:00
committed by GitHub
parent 68390d4085
commit 13ef9ad39e
3 changed files with 59 additions and 14 deletions
@@ -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.