Skip to content

Commit

Permalink
increase workers runtime limit
Browse files Browse the repository at this point in the history
  • Loading branch information
freakstatic committed Sep 21, 2023
1 parent 5dfd153 commit 6dcd82e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ impl BondingRestriction<AccountId> for RestrictStakingAccountsFromBonding {
}

parameter_types! {
pub const MaxWorkerNumberLimit: u32 = 30;
pub const MaxWorkerNumberLimit: u32 = 50;
pub const MinUnstakingPeriodLimit: u32 = days!(20);
// FIXME: Periods should be the same, but rewards should start at different blocks
pub const ForumWorkingGroupRewardPeriod: u32 = days!(1) + 10;
Expand Down
7 changes: 7 additions & 0 deletions tests/network-tests/src/misc/postRuntimeUpdateChecks.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { assert } from 'chai'
import { FlowProps } from '../Flow'
import { extendDebug } from '../Debugger'
import type { u32 } from '@polkadot/types-codec';

export default async function assertValues({ api }: FlowProps): Promise<void> {
const debug = extendDebug('flow:postMigrationAssertions')
Expand All @@ -10,5 +11,11 @@ export default async function assertValues({ api }: FlowProps): Promise<void> {
const version = await api.rpc.state.getRuntimeVersion()
assert.equal(version.specVersion.toNumber(), 2002)

debug('Check workers limit')
for(let group of ['storageWorkingGroup', 'distributionWorkingGroup']) {
const worker_limit = (api.consts[group].maxWorkerNumberLimit as u32).toNumber();
assert.equal(worker_limit, 50)
}

debug('Done')
}

0 comments on commit 6dcd82e

Please sign in to comment.