Improve Payout Benchmarks in Staking (#7237)

* add additional checks

* fix wasm trap

* Wasm trap?

* Clean up validators before running payout

* fix line width
This commit is contained in:
Shawn Tabrizi
2020-09-30 22:55:17 +02:00
committed by GitHub
parent cdff10e1b2
commit 721754bc6e
3 changed files with 53 additions and 18 deletions
+1 -1
View File
@@ -436,7 +436,7 @@ parameter_types! {
pub const BondingDuration: pallet_staking::EraIndex = 24 * 28;
pub const SlashDeferDuration: pallet_staking::EraIndex = 24 * 7; // 1/4 the bonding duration.
pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE;
pub const MaxNominatorRewardedPerValidator: u32 = 64;
pub const MaxNominatorRewardedPerValidator: u32 = 256;
pub const ElectionLookahead: BlockNumber = EPOCH_DURATION_IN_BLOCKS / 4;
pub const MaxIterations: u32 = 10;
// 0.05%. The higher the value, the more strict solution acceptance becomes.