Repository navigation
fix(proto): deprecate pub_key in Validator instead of removing it - #3077
Conversation
|
Thanks for this @melekes ! Are there other possible structs using |
we are calculating |
pub_key in Validatorpub_key in Validator instead of removing it
|
pub_key in Validator instead of removing itpub_key in Validator instead of removing it
I'm going to add tests in a separate PR. |
|
Patch has been verified manually in cosmos/cosmos-sdk#20318 (comment) |
sergio-mena
left a comment
There was a problem hiding this comment.
Changes in this PR LGTM.
I have a question: given our current understanding on how difficult it is to get rid of PublicKey from the Validator structure (if possible at all), is it really a good move to introduce pub_key_type?
…#3077) which makes the change non-breaking (i.e., chains using v0.38 can use v1 without a hard fork) * revert changes to `SimpleValidator` because it breaks consensus (`v1 valSet hash != v0.38 valSet hash`). Closes #3075 <!-- Please add a reference to the issue that this PR addresses and indicate which files are most critical to review. If it fully addresses a particular issue, please include "Closes #XXX" (where "XXX" is the issue number). If this PR is non-trivial/large/complex, please ensure that you have either created an issue that the team's had a chance to respond to, or had some discussion with the team prior to submitting substantial pull requests. The team can be reached via GitHub Discussions or the Cosmos Network Discord server in the #cometbft channel. GitHub Discussions is preferred over Discord as it allows us to keep track of conversations topically. https://github.com/cometbft/cometbft/discussions If the work in this PR is not aligned with the team's current priorities, please be advised that it may take some time before it is merged - especially if it has not yet been discussed with the team. See the project board for the team's current priorities: https://github.com/orgs/cometbft/projects/1 --> --- #### PR checklist - [ ] Tests written/updated - [x] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments - [x] Title follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec (cherry picked from commit 5745407)
PublicKey will stay in |
… (backport #3077) (#3085) which makes the change non-breaking (i.e., chains using v0.38 can use v1 without a hard fork) * revert changes to `SimpleValidator` because it breaks consensus (`v1 valSet hash != v0.38 valSet hash`). Closes #3075 --- #### PR checklist - [ ] Tests written/updated - [x] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments - [x] Title follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec <hr>This is an automatic backport of pull request #3077 done by [Mergify](https://mergify.com). Co-authored-by: Anton Kaliaev <[email protected]>
|
@melekes So, if I want to add a new curve in the near future, will I still need to modify protobufs (the |
Yeah. We need to break the hash in order to remove it from |
which makes the change non-breaking (i.e., chains using v0.38 can use v1 without a hard fork)
SimpleValidatorbecause it breaks consensus (v1 valSet hash != v0.38 valSet hash).Closes #3075
PR checklist
.changelog(we use unclog to manage our changelog)docs/orspec/) and code comments