mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 21:21:11 +00:00
Ensure cumulus/bridges is ignored by formatter and run it (#1369)
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user