mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 04:41:03 +00:00
Make a few things for staking miner (#9241)
This commit is contained in:
@@ -1294,14 +1294,14 @@ impl<T: Config> Pallet<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Kill everything created by [`Pallet::create_snapshot`].
|
/// Kill everything created by [`Pallet::create_snapshot`].
|
||||||
pub(crate) fn kill_snapshot() {
|
pub fn kill_snapshot() {
|
||||||
<Snapshot<T>>::kill();
|
<Snapshot<T>>::kill();
|
||||||
<SnapshotMetadata<T>>::kill();
|
<SnapshotMetadata<T>>::kill();
|
||||||
<DesiredTargets<T>>::kill();
|
<DesiredTargets<T>>::kill();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Checks the feasibility of a solution.
|
/// Checks the feasibility of a solution.
|
||||||
fn feasibility_check(
|
pub fn feasibility_check(
|
||||||
solution: RawSolution<CompactOf<T>>,
|
solution: RawSolution<CompactOf<T>>,
|
||||||
compute: ElectionCompute,
|
compute: ElectionCompute,
|
||||||
) -> Result<ReadySolution<T::AccountId>, FeasibilityError> {
|
) -> Result<ReadySolution<T::AccountId>, FeasibilityError> {
|
||||||
|
|||||||
@@ -581,7 +581,7 @@ pub mod pallet {
|
|||||||
/// Events deposited for the current block.
|
/// Events deposited for the current block.
|
||||||
#[pallet::storage]
|
#[pallet::storage]
|
||||||
#[pallet::getter(fn events)]
|
#[pallet::getter(fn events)]
|
||||||
pub(super) type Events<T: Config> =
|
pub type Events<T: Config> =
|
||||||
StorageValue<_, Vec<EventRecord<T::Event, T::Hash>>, ValueQuery>;
|
StorageValue<_, Vec<EventRecord<T::Event, T::Hash>>, ValueQuery>;
|
||||||
|
|
||||||
/// The number of events in the `Events<T>` list.
|
/// The number of events in the `Events<T>` list.
|
||||||
|
|||||||
Reference in New Issue
Block a user