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

Cleanup forum parameters #3595

Closed
bedeho opened this issue Apr 12, 2022 · 1 comment
Closed

Cleanup forum parameters #3595

bedeho opened this issue Apr 12, 2022 · 1 comment
Assignees
Labels

Comments

@bedeho
Copy link
Member

bedeho commented Apr 12, 2022

The parameters defined for the forum pallet are not all used

parameter_types! {
    pub const MaxCategoryDepth: u64 = 6;
    pub const MaxSubcategories: u64 = 20;
    pub const MaxThreadsInCategory: u64 = 20;
    pub const MaxPostsInThread: u64 = 20;
    pub const MaxModeratorsForCategory: u64 = 20;
    pub const MaxCategories: u64 = 20;
    pub const MaxPollAlternativesNumber: u64 = 20;
    pub const ThreadDeposit: u64 = 30;
    pub const PostDeposit: u64 = 10;
    pub const ForumModuleId: ModuleId = ModuleId(*b"mo:forum"); // module : forum
    pub const PostLifeTime: BlockNumber = 3600;
}

I can verify that at lest MaxPostsInThread, which would be a very costly constraint, is not actually used. I suggest the list is reviewed and cleaned up.

┆Issue is synchronized with this Asana task by Unito

@bedeho
Copy link
Member Author

bedeho commented Sep 5, 2022

Covered by #2914.

@bedeho bedeho closed this as completed Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant