Skip to content
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

Merged
merged 6 commits into from
Aug 6, 2020

Conversation

jinmannwong
Copy link
Contributor

Refactor delaying of staking updates into own file to minimise changes to other sdk modules

@@ -0,0 +1,29 @@
package keeper

Copy link
Contributor Author

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.

EndBlocker(ctx, &keeper)
BeginBlocker(ctx, abci.RequestBeginBlock{Header: header}, keeper)
EndBlocker(ctx, keeper)
EndBlocker(ctx, keeper)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double end blocker - intentional?

Copy link
Contributor Author

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 (
Copy link
Member

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

Copy link
Contributor Author

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.

@jinmannwong jinmannwong merged commit a975423 into fetchai:master Aug 6, 2020
@jinmannwong jinmannwong deleted the bug_fix/staking branch August 6, 2020 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants