diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 7060e53f2a..1c91f84f29 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -1240,7 +1240,7 @@ impl membership::Config for Runtime { parameter_types! { pub const MaxCategoryDepth: u64 = 6; - pub const MaxDirectSubcategoriesInCategory: u64 = 5; + pub const MaxDirectSubcategoriesInCategory: u64 = 10; pub const MaxTotalCategories: u64 = 40; pub const MaxModeratorsForCategory: u64 = 10; diff --git a/tests/network-tests/src/misc/postRuntimeUpdateChecks.ts b/tests/network-tests/src/misc/postRuntimeUpdateChecks.ts index d8fb4746f0..56a4ce9479 100644 --- a/tests/network-tests/src/misc/postRuntimeUpdateChecks.ts +++ b/tests/network-tests/src/misc/postRuntimeUpdateChecks.ts @@ -11,6 +11,10 @@ export default async function assertValues({ api }: FlowProps): Promise { const version = await api.rpc.state.getRuntimeVersion() assert.equal(version.specVersion.toNumber(), 2002) + debug('Check forum sub category limit') + const subCategoryLimit = api.consts.forum.maxDirectSubcategoriesInCategory.toNumber() + assert.equal(subCategoryLimit, 10) + debug('Check workers limit') for (const group of ['storageWorkingGroup', 'distributionWorkingGroup']) { const workerLimit = (api.consts[group].maxWorkerNumberLimit as u32).toNumber()