Ensure cumulus/bridges is ignored by formatter and run it (#1369)

This commit is contained in:
Gavin Wood
2023-09-03 15:11:26 +02:00
committed by GitHub
parent 2c3e869c38
commit bc6fca3c44
7 changed files with 20 additions and 18 deletions
@@ -334,10 +334,10 @@ impl<T: Config> Pallet<T> {
contribution.length.saturating_dec();
let Some(mut pool_record) = InstaPoolHistory::<T>::get(r) else {
continue;
continue
};
let Some(total_payout) = pool_record.maybe_payout else {
break;
break
};
let p = total_payout
.saturating_mul(contributed_parts.into())
+2 -2
View File
@@ -96,7 +96,7 @@ impl<T: Config> Pallet<T> {
pub(crate) fn process_revenue() -> bool {
let Some((until, amount)) = T::Coretime::check_notify_revenue_info() else {
return false;
return false
};
let when: Timeslice =
(until / T::TimeslicePeriod::get()).saturating_sub(One::one()).saturated_into();
@@ -290,7 +290,7 @@ impl<T: Config> Pallet<T> {
core: CoreIndex,
) {
let Some(workplan) = Workplan::<T>::take((timeslice, core)) else {
return;
return
};
let workload = Workload::<T>::get(core);
let parts_used = workplan.iter().map(|i| i.mask).fold(CoreMask::void(), |a, i| a | i);