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(sequencer)!: Add new validator update action #1679

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ethanoroshiba
Copy link
Contributor

@ethanoroshiba ethanoroshiba commented Oct 17, 2024

Summary

Added new action ValidatorUpdateV2, which houses the same functionality as ValidatorUpdate but now includes a name field.

Background

Previously, validator names were not stored app-side, and names could only be set in CometBFT genesis.

Changes

  • Added ValidatorUpdateV2 action to protos and core.
  • Added ValidatorNames struct, which contains address <> name key-value pairs.
  • Added storage keys, value impls, snapshots, and state read/write methods for ValidatorNames.
  • Added new ABCI query for validator name, accepting address as a parameter.

Testing

  • Snapshot tests added for new VALIDATOR_NAMES storage key
  • Unit tests for new state read/write methods
  • Unit tests that new ABCI query works as expected
  • Unit test for ABCI query router to validator_name_request.
  • App execution test for ValidatorUpdateV2.
  • Added ValidatorUpdateV2 to app_execute_transaction_with_every_action.

Breaking Changelist

  • Non-consensus breaking, but added action to proto, triggering breaking changes notification from lint.

Related Issues

closes #1590

@github-actions github-actions bot added proto pertaining to the Astria Protobuf spec sequencer pertaining to the astria-sequencer crate labels Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proto pertaining to the Astria Protobuf spec sequencer pertaining to the astria-sequencer crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(sequencer): updates of validator names
1 participant