Skip to content

Commit

Permalink
Merge pull request #4881 from freakstatic/nara-max-forum-sub-categories
Browse files Browse the repository at this point in the history
[Nara] Increase forum sub categories runtime limit
  • Loading branch information
mnaamani committed Sep 23, 2023
2 parents 0bd2879 + 868740f commit 48c11ad
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 @@ -11,6 +11,10 @@ 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('Check workers limit')
for (const group of ['storageWorkingGroup', 'distributionWorkingGroup']) {
const workerLimit = (api.consts[group].maxWorkerNumberLimit as u32).toNumber()
Expand Down

0 comments on commit 48c11ad

Please sign in to comment.