mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
Companion for substrate/pull/9286 (#3443)
* Fix weights * try something to unbreak companion * update Substrate Co-authored-by: Andronik Ordian <write@reusable.software> Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -66,3 +66,16 @@ where
|
||||
Zero::zero(),
|
||||
))
|
||||
}
|
||||
|
||||
/// The numbers configured here should always be more than the the maximum limits of staking pallet
|
||||
/// to ensure election snapshot will not run out of memory.
|
||||
pub struct BenchmarkConfig;
|
||||
impl pallet_election_provider_multi_phase::BenchmarkingConfig for BenchmarkConfig {
|
||||
const VOTERS: [u32; 2] = [5_000, 10_000];
|
||||
const TARGETS: [u32; 2] = [1_000, 2_000];
|
||||
const ACTIVE_VOTERS: [u32; 2] = [1000, 4_000];
|
||||
const DESIRED_TARGETS: [u32; 2] = [400, 800];
|
||||
const SNAPSHOT_MAXIMUM_VOTERS: u32 = 25_000;
|
||||
const MINER_MAXIMUM_VOTERS: u32 = 15_000;
|
||||
const MAXIMUM_TARGETS: u32 = 2000;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user