mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 04:41:03 +00:00
Trim compact solution for length during preparation (#8317)
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
3351cb8869
commit
33425ce21f
@@ -534,12 +534,19 @@ pub mod pallet {
|
||||
/// Maximum number of iteration of balancing that will be executed in the embedded miner of
|
||||
/// the pallet.
|
||||
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 values, based on [`WeightInfo::submit_unsigned`].
|
||||
/// this value, based on [`WeightInfo::submit_unsigned`].
|
||||
type MinerMaxWeight: Get<Weight>;
|
||||
|
||||
/// Maximum length (bytes) that the mined solution should consume.
|
||||
///
|
||||
/// The miner will ensure that the total length of the unsigned solution will not exceed
|
||||
/// this value.
|
||||
type MinerMaxLength: Get<u32>;
|
||||
|
||||
/// Something that will provide the election data.
|
||||
type DataProvider: ElectionDataProvider<Self::AccountId, Self::BlockNumber>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user