Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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')
}