Skip to content

Conversation

@LePremierHomme
Copy link
Contributor

Closes #1095

@LePremierHomme LePremierHomme requested a review from a team as a code owner November 28, 2024 17:19
Comment on lines +78 to +80
require(saDiamond.getter().genesisValidators().length == 0, "unexpected genesis validators");
require(saDiamond.getter().getActiveValidators().length == 0, "unexpected active validators");
require(saDiamond.getter().getWaitingValidators().length == 0, "unexpected waiting validators");
Copy link
Contributor

Choose a reason for hiding this comment

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

Good work strengthening the assertions here with the new accessors!

#[derive(Debug, Args)]
#[command(
name = "list validators",
about = "List the info of all the validators in the subnet"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
about = "List the info of all the validators in the subnet"
about = "List the info of all the validators in the subnet, as viewed by the parent"

Copy link
Contributor

Choose a reason for hiding this comment

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

Important to note this, since one would default to thinking that we're querying the subnet itself.

Copy link
Contributor

Choose a reason for hiding this comment

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

Pushed in 8f12868.

@raulk raulk merged commit ee04c63 into main Dec 10, 2024
@raulk raulk deleted the list-validators branch December 10, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

Add list validator cmd to ipc-cli

2 participants