Skip to content

valset: update max_validators #28

Closed
@alpe

Description

There should be a way to update the maximum number of validators via gov proposal.
Not sure if OC or validator community would be responsible. 🤷

Solution (by Ethan):

  1. Add optional arguments to the MigrateMsg. If set, while doing the migration, update the config. This will be used right away to demo in the testnet and as a recovery posibility.
pub struct MigrateMsg {
  pub min_weight: Option<u64>,
  pub max_validators: Option<u32>,
}
  1. Add a new variant to ExecuteMsg - UpdateConfig, which just has those two fields for now. It must be gated so only admin can call it and it will update the config and save.

In another issue we expose this to the OC.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

breakingBreaking changes (API or State)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions