Skip to content

Commit

Permalink
Make a few things for staking miner (paritytech#9241)
Browse files Browse the repository at this point in the history
  • Loading branch information
kianenigma committed Jun 30, 2021
1 parent a4c8ab9 commit 83808aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frame/election-provider-multi-phase/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1294,14 +1294,14 @@ impl<T: Config> Pallet<T> {
}

/// Kill everything created by [`Pallet::create_snapshot`].
pub(crate) fn kill_snapshot() {
pub fn kill_snapshot() {
<Snapshot<T>>::kill();
<SnapshotMetadata<T>>::kill();
<DesiredTargets<T>>::kill();
}

/// Checks the feasibility of a solution.
fn feasibility_check(
pub fn feasibility_check(
solution: RawSolution<CompactOf<T>>,
compute: ElectionCompute,
) -> Result<ReadySolution<T::AccountId>, FeasibilityError> {
Expand Down
2 changes: 1 addition & 1 deletion frame/system/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ pub mod pallet {
/// Events deposited for the current block.
#[pallet::storage]
#[pallet::getter(fn events)]
pub(super) type Events<T: Config> =
pub type Events<T: Config> =
StorageValue<_, Vec<EventRecord<T::Event, T::Hash>>, ValueQuery>;

/// The number of events in the `Events<T>` list.
Expand Down

0 comments on commit 83808aa

Please sign in to comment.