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

Commit 279369e

Browse files
authored
make submit_unsigned into DispatchClass::Operational (#9309)
Closes #8511.
1 parent d3db3c1 commit 279369e

File tree

1 file changed

+9
-6
lines changed
  • frame/election-provider-multi-phase/src

1 file changed

+9
-6
lines changed

frame/election-provider-multi-phase/src/lib.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -829,11 +829,14 @@ pub mod pallet {
829829
/// putting their authoring reward at risk.
830830
///
831831
/// No deposit or reward is associated with this submission.
832-
#[pallet::weight(T::WeightInfo::submit_unsigned(
833-
witness.voters,
834-
witness.targets,
835-
solution.compact.voter_count() as u32,
836-
solution.compact.unique_targets().len() as u32
832+
#[pallet::weight((
833+
T::WeightInfo::submit_unsigned(
834+
witness.voters,
835+
witness.targets,
836+
solution.compact.voter_count() as u32,
837+
solution.compact.unique_targets().len() as u32
838+
),
839+
DispatchClass::Operational,
837840
))]
838841
pub fn submit_unsigned(
839842
origin: OriginFor<T>,
@@ -904,7 +907,7 @@ pub mod pallet {
904907

905908
// Note: we don't `rotate_round` at this point; the next call to
906909
// `ElectionProvider::elect` will succeed and take care of that.
907-
910+
908911
let solution = ReadySolution {
909912
supports,
910913
score: [0, 0, 0],

0 commit comments

Comments
 (0)