-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Feature]: add MaxOptionsLen
to gov
configs
#20074
Comments
I guess this could make sense (expect let's call it MaxVoteOptionsLen instead), but why not disabling |
Yeah in our case we wanted to minimize changes with upstream, so we disabled |
Btw, if you guys plan to release other minor or patch versions on top of |
If the default is Concerning disabling MsgVoteWeighted on the server side you can simply use the I am not opposed to such feature personally, maybe other have other opinions (cc @tac0turtle), but I am still failing to understand the use case (why would you want to limit the number of option). |
Hey @julienrbrt |
Okay, are you willing to tackle this then? Happy to review. |
Sure. I'll make the relevant changes targeting |
That will be already server side if you add the check in the message handler / keeper. |
Created a PR @julienrbrt |
Summary
Adding a
MaxOptionsLen
alongside the other configs in gov module to help define the maximum number of options a proposal can have.Problem Definition
In our use case (here at Polygon Labs), for example, we use that to enforce the
MaxOptionsLen
to be 1 when we do not want to allow multiple options per proposals, by doing something likewhere default configs are
In Polygon use case, this is then verified while tallying or adding a vote by asserting the options length:
Proposed Feature
Change the
gov
configs fromto
The text was updated successfully, but these errors were encountered: