Skip to content

Commit

Permalink
increase forum sub categories runtime limit
Browse files Browse the repository at this point in the history
  • Loading branch information
freakstatic committed Sep 21, 2023
1 parent 5dfd153 commit aee007e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 4 additions & 0 deletions tests/network-tests/src/misc/postRuntimeUpdateChecks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ export default async function assertValues({ api }: FlowProps): Promise<void> {
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')
}

0 comments on commit aee007e

Please sign in to comment.