-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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!: add protection against accidental downgrades #10407
Merged
Merged
Changes from 26 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
0f65ae5
add handler check in BeginBlock
aleem1314 7011976
review changes
aleem1314 9d8e964
add tests
aleem1314 6f9780e
Merge branch 'master' into aleem/10318-binary-downgrades
aleem1314 00aa578
review changes
aleem1314 bbb6259
Merge branch 'aleem/10318-binary-downgrades' of https://github.com/co…
aleem1314 7f51fac
review changes
aleem1314 b023d1a
review changes
aleem1314 ea8b276
review changes
aleem1314 0bce20c
Merge branch 'master' into aleem/10318-binary-downgrades
aleem1314 cac3107
Merge branch 'master' into aleem/10318-binary-downgrades
aleem1314 512a73c
chore: cleanup
aleem1314 ad8823b
Merge branch 'master' into aleem/10318-binary-downgrades
aleem1314 23ccc63
chore: add more tests
aleem1314 cc9fa0a
Merge branch 'aleem/10318-binary-downgrades' of https://github.com/co…
aleem1314 cf1251a
Merge branch 'master' into aleem/10318-binary-downgrades
aleem1314 1e8e047
chore: address review changes
aleem1314 670e2d6
Merge branch 'aleem/10318-binary-downgrades' of https://github.com/co…
aleem1314 ecd03d3
chore: cleanup
aleem1314 16fdc29
Merge branch 'master' of https://github.com/cosmos/cosmos-sdk into al…
aleem1314 1f7cc72
chore: refactor tests to table tests
aleem1314 665a108
Merge branch 'master' into aleem/10318-binary-downgrades
aleem1314 9914bfe
chore: add changelog
aleem1314 5a2f4ae
chore: fix test
aleem1314 51d7d21
chore: review changes
aleem1314 3cb9b82
Merge branch 'master' into aleem/10318-binary-downgrades
aleem1314 42c72a9
Merge branch 'master' into aleem/10318-binary-downgrades
aleem1314 97fada7
chore: review changes
aleem1314 6bae3a7
chore: move downgradeVerified to keeper
aleem1314 1032b33
Merge branch 'master' into aleem/10318-binary-downgrades
robert-zaremba 42c6ac5
Merge branch 'master' into aleem/10318-binary-downgrades
robert-zaremba 4229034
Merge branch 'master' into aleem/10318-binary-downgrades
aleem1314 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
can we have this be part of the keeper instead? Or is that not possible? I just really try to advise against the use of globals when possible.
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.
Aren't keepers supposed to be stateless though?
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.
Kinda sorta, yes. Staking isn't (hooks). This is just a suggestion though.
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.
Putting this variable in keeper is better than using global.
Why keepers should be stateless?