Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
make submit_unsigned into DispatchClass::Operational
Browse files Browse the repository at this point in the history
Closes #8511.
  • Loading branch information
coriolinus committed Jul 8, 2021
1 parent 9235309 commit bcbe37f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions frame/election-provider-multi-phase/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -829,11 +829,14 @@ pub mod pallet {
/// putting their authoring reward at risk.
///
/// No deposit or reward is associated with this submission.
#[pallet::weight(T::WeightInfo::submit_unsigned(
witness.voters,
witness.targets,
solution.compact.voter_count() as u32,
solution.compact.unique_targets().len() as u32
#[pallet::weight((
T::WeightInfo::submit_unsigned(
witness.voters,
witness.targets,
solution.compact.voter_count() as u32,
solution.compact.unique_targets().len() as u32
),
DispatchClass::Operational,
))]
pub fn submit_unsigned(
origin: OriginFor<T>,
Expand Down Expand Up @@ -904,7 +907,7 @@ pub mod pallet {

// Note: we don't `rotate_round` at this point; the next call to
// `ElectionProvider::elect` will succeed and take care of that.

let solution = ReadySolution {
supports,
score: [0, 0, 0],
Expand Down

0 comments on commit bcbe37f

Please sign in to comment.