From 9c1016b3a7415bf9ed8276ddbcfad9c9be715f87 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 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') }