-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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: include rotate keys logic in abci #18236
Conversation
Note Reviews PausedUse the following commands to manage reviews:
WalkthroughThe changes across various files in the Cosmos SDK introduce functionality for updating validators' consensus public keys. This includes hooks and methods for handling the update process, error handling for invalid keys, and updating related data structures such as signing info and missed blocks. Additionally, there are updates to the staking module to manage the rotation history and matured keys, as well as changes to the distribution module to handle rotation fees. Tests are added to ensure the new functionality works as expected. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on X ? TipsChat with CodeRabbit Bot (
|
…nto ap/add-msg-srvr-code
…nto ap/abci-and-hooks
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.
Left a few minor comments, but overall I think this looks good enough to merge once addressed. Great work @atheeshp 👏
@@ -53,6 +53,10 @@ type StakingKeeper interface { | |||
|
|||
// IsValidatorJailed returns if the validator is jailed. | |||
IsValidatorJailed(ctx context.Context, addr sdk.ConsAddress) (bool, error) | |||
|
|||
// ValidatorIdentifier maps the new cons key to previous cons key (which is the address before the rotation). |
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.
I don't necessary love this name, it doesn't accurately describe what it does
Description
follow-up: #18188
ref: #18141
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
make lint
andmake test
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking changeSummary by CodeRabbit
New Features
Enhancements
Bug Fixes
Testing
Documentation
Refactor