Skip to content

Commit

Permalink
Merge pull request #4882 from freakstatic/nara-workers-limit
Browse files Browse the repository at this point in the history
[Nara] Increase workers runtime limit
  • Loading branch information
mnaamani authored Sep 23, 2023
2 parents 5dfd153 + 0d0efcf commit 0bd2879
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 (const group of ['storageWorkingGroup', 'distributionWorkingGroup']) {
const workerLimit = (api.consts[group].maxWorkerNumberLimit as u32).toNumber()
assert.equal(workerLimit, 50)
}

debug('Done')
}

0 comments on commit 0bd2879

Please sign in to comment.