Skip to content

Commit

Permalink
Prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
ekovalev committed Oct 5, 2023
1 parent ebd8bf5 commit 1165dc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pallets/staking-rewards/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ impl<T: Config> OnUnbalanced<PositiveImbalanceOf<T>> for Pallet<T> {
/// Implements the `OnUnbalanced<NegativeImbalance>` trait in a way that would try to burn
/// the amount equivalent to that provided in the input `NegativeImbalance` from the rewards
/// pool in order to keep the token total supply intact. It is assumed that the subsequent
/// `OnUnbalanced` handler (think Treasury) would `resolve` the imbalance and not drop it -
/// `OnUnbalanced` handler (e.g. Treasury) would `resolve` the imbalance and not drop it -
/// otherwise the the total supply will decrease.
pub struct RewardsStash<T, U>(sp_std::marker::PhantomData<(T, U)>);

Expand Down
5 changes: 3 additions & 2 deletions pallets/staking-rewards/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -706,15 +706,16 @@ pub(crate) fn run_for_n_blocks(n: u64) {
}
}

pub fn roll_to_unsigned() {
pub fn run_to_unsigned() {
while !matches!(
ElectionProviderMultiPhase::current_phase(),
multi_phase::Phase::Unsigned(_)
) {
run_to_block(System::block_number() + 1);
}
}
pub fn roll_to_signed() {

pub fn run_to_signed() {
while !matches!(
ElectionProviderMultiPhase::current_phase(),
multi_phase::Phase::Signed
Expand Down

0 comments on commit 1165dc4

Please sign in to comment.