From 83808aa815a9fbc528b76cd25ae1dec57e269771 Mon Sep 17 00:00:00 2001 From: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Date: Wed, 30 Jun 2021 22:46:28 +0200 Subject: [PATCH] Make a few things for staking miner (#9241) --- frame/election-provider-multi-phase/src/lib.rs | 4 ++-- frame/system/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frame/election-provider-multi-phase/src/lib.rs b/frame/election-provider-multi-phase/src/lib.rs index e127e34d55723..7aab93fb652f7 100644 --- a/frame/election-provider-multi-phase/src/lib.rs +++ b/frame/election-provider-multi-phase/src/lib.rs @@ -1294,14 +1294,14 @@ impl Pallet { } /// Kill everything created by [`Pallet::create_snapshot`]. - pub(crate) fn kill_snapshot() { + pub fn kill_snapshot() { >::kill(); >::kill(); >::kill(); } /// Checks the feasibility of a solution. - fn feasibility_check( + pub fn feasibility_check( solution: RawSolution>, compute: ElectionCompute, ) -> Result, FeasibilityError> { diff --git a/frame/system/src/lib.rs b/frame/system/src/lib.rs index f96c43ee1c98e..ad57bf6a87994 100644 --- a/frame/system/src/lib.rs +++ b/frame/system/src/lib.rs @@ -581,7 +581,7 @@ pub mod pallet { /// Events deposited for the current block. #[pallet::storage] #[pallet::getter(fn events)] - pub(super) type Events = + pub type Events = StorageValue<_, Vec>, ValueQuery>; /// The number of events in the `Events` list.