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

staking: enshrine consensus key indexing requirement in unit-test #4148

Merged
merged 5 commits into from
Apr 2, 2024

Conversation

erwanor
Copy link
Member

@erwanor erwanor commented Apr 2, 2024

Describe your changes

This PR adds a unit-test to the staking component to capture that we must "never"1 delete a comet verification key -> identity key entry from the consensus key index. This is because we always want to be able to do byzantine evidence attribution even if a validator has rotated the consensus key that they used to equivocate.

Keeping old entries around enables the evidence processor to resolve a consensus key to a persistent validator identity, and slash it / record a penalty.

More context in: #4144

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    This is an internal refactor.

Footnotes

  1. fwiw - this is probably fine to prune after one or two unbonding windows have elapsed

@erwanor erwanor requested a review from cratelyn April 2, 2024 16:01
@erwanor erwanor self-assigned this Apr 2, 2024
@erwanor erwanor added the A-staking Area: Design and implementation of staking and delegation label Apr 2, 2024
@erwanor erwanor added this to the Sprint 3 milestone Apr 2, 2024
@erwanor erwanor merged commit e5c1203 into main Apr 2, 2024
7 checks passed
@erwanor erwanor deleted the erwan/consensus_key_unit_test branch April 2, 2024 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-staking Area: Design and implementation of staking and delegation
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant