Companion for Weight v1.5 Follow Up (#5949)

* updates

* remove new

* fix up some stuff

* fix cargo files

* fix

* fix template

* update lockfile for {"substrate"}

* Update block_weights.rs

* remove unused

* remove unused

Co-authored-by: parity-processbot <>
This commit is contained in:
Shawn Tabrizi
2022-09-01 20:00:51 +01:00
committed by GitHub
parent 75d49dfeb4
commit e28bf2e476
128 changed files with 969 additions and 968 deletions
@@ -99,12 +99,12 @@ pub fn multi_dispute_statement_sets_weight<
.as_ref()
.iter()
.map(|d| dispute_statement_set_weight::<T, &S>(d))
.fold(Weight::new(), |acc_weight, weight| acc_weight.saturating_add(weight))
.fold(Weight::zero(), |acc_weight, weight| acc_weight.saturating_add(weight))
}
pub fn signed_bitfields_weight<T: Config>(bitfields_len: usize) -> Weight {
<<T as Config>::WeightInfo as WeightInfo>::enter_bitfields()
.saturating_mul(Weight::from_ref_time(bitfields_len as u64))
.saturating_mul(bitfields_len as u64)
}
pub fn backed_candidate_weight<T: frame_system::Config + Config>(
@@ -125,5 +125,5 @@ pub fn backed_candidates_weight<T: frame_system::Config + Config>(
candidates
.iter()
.map(|c| backed_candidate_weight::<T>(c))
.fold(Weight::new(), |acc, x| acc.saturating_add(x))
.fold(Weight::zero(), |acc, x| acc.saturating_add(x))
}