-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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: include rotate keys logic in abci #18236
Merged
Merged
Changes from all commits
Commits
Show all changes
115 commits
Select commit
Hold shift + click to select a range
b6b512a
feat: implement rotate cons key method in msg server
atheeshp 7c7322a
fix tests
atheeshp 9aef4f4
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp 37675e6
fix tests
atheeshp a9be784
fix tests
atheeshp 2a713b5
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp 43923ce
go mod tidy
atheeshp d674890
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp c9f32a7
feat: include rotate keys logic in abci
atheeshp 20f27b7
Merge branch 'main' into ap/add-msg-srvr-code
atheeshp a51cca3
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp cacc0d8
go mod
atheeshp e9231e4
Merge branch 'ap/add-msg-srvr-code' of github.com:cosmos/cosmos-sdk i…
atheeshp 5086c5f
fix lint
atheeshp 202e2ef
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp 3b52332
review changes
atheeshp 4843ae1
fix tests
atheeshp 67e15e0
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp 8ffaa71
code rabbit review changes
atheeshp c093905
Merge branch 'ap/add-msg-srvr-code' of github.com:cosmos/cosmos-sdk i…
atheeshp cce3c19
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp 4a63bde
conflicts
atheeshp 4350e5b
review changes
atheeshp bbcb932
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp 7b2b9bd
fix tests
atheeshp 6e8eb7f
review changes
atheeshp 04f1cbe
Merge branch 'main' into ap/add-msg-srvr-code
atheeshp 55496f9
Merge branch 'ap/add-msg-srvr-code' of github.com:cosmos/cosmos-sdk i…
atheeshp 535d00f
review changes
atheeshp 46ae281
review changes
atheeshp 12274e9
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp b19d163
Merge branch 'ap/add-msg-srvr-code' of github.com:cosmos/cosmos-sdk i…
atheeshp e463855
go mod
atheeshp 552e683
go mod
atheeshp 2ea32bc
fix go mod
atheeshp fb3363f
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp 9976530
go mod
atheeshp f0113eb
Merge branch 'ap/add-msg-srvr-code' of github.com:cosmos/cosmos-sdk i…
atheeshp d4439ec
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp 87aebe8
Merge branch 'ap/add-msg-srvr-code' of github.com:cosmos/cosmos-sdk i…
atheeshp 3a0f4da
review changes
atheeshp 89ca04f
proto
atheeshp 6d138b8
proto-gen
atheeshp 49f1745
review changes
atheeshp 4183c78
review changes
atheeshp 327929f
proto-gen
atheeshp efb8022
review changes
atheeshp dfbb63a
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp dd8c72c
review changes
atheeshp 0359d96
review changes
atheeshp 441f6ee
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp f41fdf0
go mod tidy
atheeshp c7563f5
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp 44731ce
try fixing go mod
atheeshp 8a00a07
fix go mod changes
atheeshp 7ed213f
review change
atheeshp 78c4eda
review changes
atheeshp b236334
review changes
atheeshp a4b06da
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp cae4de4
clean comments
atheeshp 1539aaa
review changes
atheeshp e30bece
Merge branch 'main' into ap/add-msg-srvr-code
atheeshp d4bf237
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp 20bf052
conflicts
atheeshp 10f6e38
Merge branch 'ap/add-msg-srvr-code' of github.com:cosmos/cosmos-sdk i…
atheeshp d32c833
go mod tidy
atheeshp 05e560a
review changes
atheeshp e27c72a
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp aee5587
Merge branch 'ap/add-msg-srvr-code' of github.com:cosmos/cosmos-sdk i…
atheeshp 06d7170
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/abci-and-…
atheeshp d560884
conflicts
atheeshp 17852c2
go mod
atheeshp 9a7a82b
go mod
atheeshp f98c94c
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/abci-and-…
atheeshp 1a2a897
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/abci-and-…
atheeshp 1f04845
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/abci-and-…
atheeshp 82bc8f5
review changes
atheeshp 03469a5
review changes
atheeshp a8544f0
nit
atheeshp ea22a3d
fix tests
atheeshp 3756d84
fix tests
atheeshp 91fe4f1
review changes
atheeshp 5ed6003
add tests for rotation
atheeshp 1191858
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/abci-and-…
atheeshp 75eb409
add extra test
atheeshp 088255b
review changes
atheeshp c221c55
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/abci-and-…
atheeshp 6b55e4b
review changes
atheeshp 0f1011b
review changes
atheeshp cc2c0a1
review changes
atheeshp 3d5c8b4
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/abci-and-…
atheeshp 1ca3562
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/abci-and-…
atheeshp cddbc58
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/abci-and-…
atheeshp f362a93
review changes
atheeshp 42979cb
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/abci-and-…
atheeshp fbd4e41
review changes
atheeshp 9961cc5
fix test
atheeshp a8bab2f
lint
atheeshp 159375e
test
atheeshp 663c8ef
lint
atheeshp 19bf12b
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/abci-and-…
atheeshp 320af37
review changes
atheeshp fcabe10
lint
atheeshp 5e4736a
review changes
atheeshp 2eedad0
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/abci-and-…
atheeshp 97c871d
remove unnecessary code
atheeshp 8f219bd
add test to check validator identifier
atheeshp 1b1f4b7
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/abci-and-…
atheeshp c742783
fix lint
atheeshp 7a4419a
review changes
atheeshp 075865b
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/abci-and-…
atheeshp 98862ef
fix `GetValidatorByConsAddr`
atheeshp bc53191
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/abci-and-…
atheeshp 693a7eb
review changes
atheeshp bd92cec
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/abci-and-…
atheeshp 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,10 @@ type StakingKeeper interface { | |
|
||
// IsValidatorJailed returns if the validator is jailed. | ||
IsValidatorJailed(ctx context.Context, addr sdk.ConsAddress) (bool, error) | ||
|
||
// ValidatorIdentifier maps the new cons key to previous cons key (which is the address before the rotation). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't necessary love this name, it doesn't accurately describe what it does |
||
// (that is: newConsKey -> oldConsKey) | ||
ValidatorIdentifier(context.Context, sdk.ConsAddress) (sdk.ConsAddress, error) | ||
} | ||
|
||
// StakingHooks event hooks for staking validator object (noalias) | ||
|
Oops, something went wrong.
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 you explain this a little bit more? Getting the consAddr this way doesn't get it from the store again if that's what you meant
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.
@atheeshp ping on this one, I think you added more comments but I'm still confused 😅
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.
an evidence for a validator's behaviour can be submitted till the unbonding period window.
When a validator rotates it's key that will update the
validator.ConsAddr
to the new address in the validator details immediately. But if the evidence submitted (within the unbonding period of the rotation) with old cons address we cannot find the required details of the validator in the slashing state because of the key rotation. To find them we need to get the validator's rotated consAddr which will be present atvalidator.consAddr