-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
stake-pool-cli: don't send UpdateValidatorListBalance
transactions for subslices of validator list that have already been updated
#6059
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice idea! I left a few comments on CLI ergonomics. Once #6058 moves along we can circle back to this, or we can do this one first and just cherry pick the last commit and move it up, up to you!
This comment was marked as off-topic.
This comment was marked as off-topic.
UpdateValidatorListBalance
transactions for subslices of validator list that have already been updatedUpdateValidatorListBalance
transactions for subslices of validator list that have already been updated
UpdateValidatorListBalance
transactions for subslices of validator list that have already been updatedUpdateValidatorListBalance
transactions for subslices of validator list that have already been updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks for adding this new functionality. I just had a question about the flag. Curious what you think!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…for subslices of validator list that have already been updated (solana-labs#6059) * remove unnecessary vote acc slice * nightly fmt * fix clippy * update stale validator_list_balance only if not force * merge * fmt * merge conflict * restore stale ixs, add fresh flag to update * fmt * fresh -> stale_only, update --force help
Problem
The
update
command on thestake-pool-cli
always sends update transactions for the entire validator list. This is redundant and increases the odds of failure if a previous update command failed in the middle since you don't have to run theUpdateValidatorListBalance
instruction again on the parts of the validator list that were successfully updated. This is especially true for large stake pools - e.g. solblaze has all 2950 validators on their list.Solution
In the
update
command, filter outUpdateValidatorListBalance
instructions for subslices of theValidatorList
that have already been updated. Keep the current behaviour for the--force
flag.This builds on PR #6058