diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 4475dcadf04..c020bd016a9 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 8e1cc4aa5c3..4dfccf5843f 100644 --- a/tests/network-tests/src/misc/postRuntimeUpdateChecks.ts +++ b/tests/network-tests/src/misc/postRuntimeUpdateChecks.ts @@ -10,5 +10,9 @@ 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 sub_category_limit = api.consts.forum.maxDirectSubcategoriesInCategory.toNumber() + assert.equal(sub_category_limit, 10) + debug('Done') }