Add missing #[pallet::constant] annotations to pallets (#9367)

fixing #9306
This commit is contained in:
Falco Hirschenberger
2021-07-18 20:27:39 +02:00
committed by GitHub
parent 2dcbad535b
commit 76a289ebd8
13 changed files with 31 additions and 0 deletions
@@ -587,15 +587,18 @@ pub mod pallet {
type OffchainRepeat: Get<Self::BlockNumber>;
/// The priority of the unsigned transaction submitted in the unsigned-phase
#[pallet::constant]
type MinerTxPriority: Get<TransactionPriority>;
/// Maximum number of iteration of balancing that will be executed in the embedded miner of
/// the pallet.
#[pallet::constant]
type MinerMaxIterations: Get<u32>;
/// Maximum weight that the miner should consume.
///
/// The miner will ensure that the total weight of the unsigned solution will not exceed
/// this value, based on [`WeightInfo::submit_unsigned`].
#[pallet::constant]
type MinerMaxWeight: Get<Weight>;
/// Maximum number of signed submissions that can be queued.
@@ -640,6 +643,7 @@ pub mod pallet {
///
/// The miner will ensure that the total length of the unsigned solution will not exceed
/// this value.
#[pallet::constant]
type MinerMaxLength: Get<u32>;
/// Something that will provide the election data.