-
Notifications
You must be signed in to change notification settings - Fork 19
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
Refactor delaying of staking updates #32
Conversation
@@ -0,0 +1,29 @@ | |||
package keeper | |||
|
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.
Main changes are the refactoring of validator update delay checks into this file.
x/staking/handler_test.go
Outdated
EndBlocker(ctx, &keeper) | ||
BeginBlocker(ctx, abci.RequestBeginBlock{Header: header}, keeper) | ||
EndBlocker(ctx, keeper) | ||
EndBlocker(ctx, keeper) |
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.
Double end blocker - intentional?
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.
It was in the original test, but the test seems to run fine without it so it was probably just a typo.
sdk "github.com/cosmos/cosmos-sdk/types" | ||
) | ||
|
||
var ( |
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.
does it makes sense for this to be const
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.
Yes, that would be better.
Refactor delaying of staking updates into own file to minimise changes to other sdk modules