Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Nara] Increase forum sub categories runtime limit #4881

Merged
merged 2 commits into from
Sep 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading