Make a few things for staking miner (#9241)

This commit is contained in:
Kian Paimani
2021-06-30 22:46:28 +02:00
committed by GitHub
parent e0df101b44
commit 54ace9cff8
2 changed files with 3 additions and 3 deletions
@@ -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> {
+1 -1
View File
@@ -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.