-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add modules gov, upgrade, evidence and crisis #1855
Conversation
@@ -230,6 +251,48 @@ func NewInitApp( | |||
app.subspaces[slashing.ModuleName], | |||
) | |||
|
|||
app.crisisKeeper = crisis.NewKeeper( |
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.
This is useless if there is no route associated. Can be added later anyway, when/if we need to use the module.
) | ||
// During begin block slashing happens after distr.BeginBlocker so that | ||
// there is nothing left over in the validator fee pool, so as to keep the | ||
// CanWithdrawInvariant invariant. | ||
|
||
app.mm.SetOrderBeginBlockers(distr.ModuleName, slashing.ModuleName) | ||
app.mm.SetOrderEndBlockers(staking.ModuleName) | ||
app.mm.SetOrderBeginBlockers(upgrade.ModuleName, distr.ModuleName, slashing.ModuleName) |
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.
Evidence should be here as it validates the double sign at each begin block.
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.
Wait for confirmation on an issue with cosmos team cosmos/scaffold#80
# Conflicts: # app/app.go
Closes #1854
Add modules gov, upgrade, evidence and crisis