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

feat(cli)!: make committee size configurable in iota start #5162

Merged
merged 12 commits into from
Feb 6, 2025

Conversation

Alex6323
Copy link
Contributor

@Alex6323 Alex6323 commented Feb 3, 2025

Description of change

This PR adds the --committee-size flag to the iota start command to allow for configurable number of validators. The upsteam change MystenLabs/sui#20511 also added this for the iota genesis command, but that feature we already added some time ago with the --num-validators option. This PR therefore renames the argument on the iota genesis command to make both commands consistent.

Links to any relevant issues

fixes #4914

Type of change

  • Enhancement (a non-breaking change which adds functionality)

How the change has been tested

Tested it locally by:
(a) running iota start --committee-size 3 on an empty config directory -> correctly resulted in 3 validator configs being generated
(b) running iota start --committee-size 10 on a non-empty config director -> correctly resulted in this flag being ignored, and the same initial committee size of 3

Change checklist

Tick the boxes that are relevant to your changes, and delete any items that are not.

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that new and existing unit tests pass locally with my changes

Copy link

vercel bot commented Feb 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
apps-backend ⬜️ Ignored (Inspect) Visit Preview Feb 6, 2025 0:38am
apps-ui-kit ⬜️ Ignored (Inspect) Visit Preview Feb 6, 2025 0:38am
rebased-explorer ⬜️ Ignored (Inspect) Visit Preview Feb 6, 2025 0:38am
wallet-dashboard ⬜️ Ignored (Inspect) Visit Preview Feb 6, 2025 0:38am

@iota-ci iota-ci added dev-tools Issues related to the Developer Tools Team sc-platform Issues related to the Smart Contract Platform group. labels Feb 3, 2025
@Alex6323 Alex6323 marked this pull request as ready for review February 3, 2025 14:52
@Alex6323 Alex6323 requested a review from a team as a code owner February 3, 2025 14:52
@Alex6323
Copy link
Contributor Author

Alex6323 commented Feb 3, 2025

@iotaledger/dev-tools Any preference whether we want to use the term committee-size for both iota start and iota genesis, or num-validators? Currently it's inconsistent.

@Alex6323 Alex6323 marked this pull request as ready for review February 5, 2025 11:03
@Alex6323 Alex6323 requested review from a team February 5, 2025 11:04
Copy link
Member

@samuel-rufi samuel-rufi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great feature! Looks good

Co-authored-by: DaughterOfMars <chloedaughterofmars@gmail.com>
@thibault-martinez thibault-martinez changed the title feat(cli): make committee size configurable in iota start feat(cli)!: make committee size configurable in iota start Feb 6, 2025
@thibault-martinez thibault-martinez merged commit e5d0587 into develop Feb 6, 2025
41 checks passed
@thibault-martinez thibault-martinez deleted the dev-tools/configurable-committee-size branch February 6, 2025 13:39
lucas-tortora pushed a commit that referenced this pull request Feb 11, 2025
* make committee size configurable

* rename num_validators to committee_size

* add warning

* Update crates/iota/src/iota_commands.rs

* rm match

Co-authored-by: DaughterOfMars <chloedaughterofmars@gmail.com>

* fmt

* nits

* remove more newlines

---------

Co-authored-by: Thibault Martinez <thibault@iota.org>
Co-authored-by: DaughterOfMars <chloedaughterofmars@gmail.com>
Signed-off-by: Lucas Tortora <lucass.tortora@iota.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-tools Issues related to the Developer Tools Team sc-platform Issues related to the Smart Contract Platform group.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(iota): make the number of validators configurable for iota genesis and iota start
7 participants