From aee007e1ad0c7ea5a03ab64a0f8ec56d4c24be29 Mon Sep 17 00:00:00 2001 From: freakstatic Date: Thu, 21 Sep 2023 01:26:49 +0100 Subject: [PATCH] increase forum sub categories runtime limit --- runtime/src/lib.rs | 2 +- tests/network-tests/src/misc/postRuntimeUpdateChecks.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 4475dcadf0..c020bd016a 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 8e1cc4aa5c..0080d47894 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 subCategoryLimit = api.consts.forum.maxDirectSubcategoriesInCategory.toNumber() + assert.equal(subCategoryLimit, 10) + debug('Done') }