cosmos-sdk icon indicating copy to clipboard operation
cosmos-sdk copied to clipboard

feat: consensus key rotation of validator

Open atheeshp opened this issue 2 years ago • 5 comments

Description

ref: #5231 Upstream from: https://github.com/iqlusioninc/cosmos-sdk/pull/2 included changes from: #9016


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...

  • [ ] included the correct type prefix in the PR title
  • [ ] added ! to the type prefix if API or client breaking change
  • [ ] targeted the correct branch (see PR Targeting)
  • [ ] provided a link to the relevant issue or specification
  • [ ] followed the guidelines for building modules
  • [ ] included the necessary unit and integration tests
  • [ ] added a changelog entry to CHANGELOG.md
  • [ ] included comments for documenting Go code
  • [ ] updated the relevant documentation or specification
  • [ ] reviewed "Files changed" and left comments if necessary
  • [ ] confirmed all CI checks have passed

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...

  • [ ] confirmed the correct type prefix in the PR title
  • [ ] confirmed ! in the type prefix if API or client breaking change
  • [ ] confirmed all author checklist items have been addressed
  • [ ] reviewed state machine logic
  • [ ] reviewed API design and naming
  • [ ] reviewed documentation is accurate
  • [ ] reviewed tests and test coverage
  • [ ] manually tested (if applicable)

atheeshp avatar Feb 27 '23 11:02 atheeshp

@atheeshp your pull request is missing a changelog!

github-actions[bot] avatar Mar 27 '23 08:03 github-actions[bot]

it seems we dont handle the case when a user rotates keys then gets slashed. The evidence module will look at the active validators but the key it needs to slash may not be present anymore.

I didn't understand this completely, can you elaborate it more? BTW, we are migrating the signing-infos as well to the new rotated cons key, same as like missed blocks.

atheeshp avatar Apr 11 '23 07:04 atheeshp

if a validator happens to misbehave at height 100, that validator swaps the key at height 101 and then the evidence is submitted in height 102 it doesnt look like the slash or evidence handle getting the swapped key. It will only see the validator doesnt exist anymore

tac0turtle avatar Apr 11 '23 09:04 tac0turtle

@alexanderbez can you give another round of review?

atheeshp avatar May 22 '23 11:05 atheeshp

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 07 '23 00:07 github-actions[bot]

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 07 '23 00:08 github-actions[bot]

converting to draft for now, we will come to it once our plate clears up thank you

tac0turtle avatar Aug 17 '23 12:08 tac0turtle

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Sep 17 '23 00:09 github-actions[bot]

ref: #18141

atheeshp avatar Oct 18 '23 05:10 atheeshp