mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 02:21:04 +00:00
make submit_unsigned into DispatchClass::Operational (#9309)
Closes #8511.
This commit is contained in:
committed by
GitHub
parent
2ae9d36758
commit
9fc86cb55f
@@ -829,11 +829,14 @@ pub mod pallet {
|
|||||||
/// putting their authoring reward at risk.
|
/// putting their authoring reward at risk.
|
||||||
///
|
///
|
||||||
/// No deposit or reward is associated with this submission.
|
/// No deposit or reward is associated with this submission.
|
||||||
#[pallet::weight(T::WeightInfo::submit_unsigned(
|
#[pallet::weight((
|
||||||
witness.voters,
|
T::WeightInfo::submit_unsigned(
|
||||||
witness.targets,
|
witness.voters,
|
||||||
solution.compact.voter_count() as u32,
|
witness.targets,
|
||||||
solution.compact.unique_targets().len() as u32
|
solution.compact.voter_count() as u32,
|
||||||
|
solution.compact.unique_targets().len() as u32
|
||||||
|
),
|
||||||
|
DispatchClass::Operational,
|
||||||
))]
|
))]
|
||||||
pub fn submit_unsigned(
|
pub fn submit_unsigned(
|
||||||
origin: OriginFor<T>,
|
origin: OriginFor<T>,
|
||||||
@@ -904,7 +907,7 @@ pub mod pallet {
|
|||||||
|
|
||||||
// Note: we don't `rotate_round` at this point; the next call to
|
// Note: we don't `rotate_round` at this point; the next call to
|
||||||
// `ElectionProvider::elect` will succeed and take care of that.
|
// `ElectionProvider::elect` will succeed and take care of that.
|
||||||
|
|
||||||
let solution = ReadySolution {
|
let solution = ReadySolution {
|
||||||
supports,
|
supports,
|
||||||
score: [0, 0, 0],
|
score: [0, 0, 0],
|
||||||
|
|||||||
Reference in New Issue
Block a user