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

Add modules gov, upgrade, evidence and crisis #1855

Merged
merged 7 commits into from
Jun 3, 2020
Merged

Conversation

NicolasMahe
Copy link
Member

@NicolasMahe NicolasMahe commented May 27, 2020

Closes #1854

Add modules gov, upgrade, evidence and crisis

@NicolasMahe NicolasMahe marked this pull request as draft May 27, 2020 11:30
@NicolasMahe NicolasMahe self-assigned this May 27, 2020
@NicolasMahe NicolasMahe requested a review from antho1404 May 27, 2020 11:30
@NicolasMahe NicolasMahe marked this pull request as ready for review May 28, 2020 10:00
@NicolasMahe NicolasMahe added this to the next milestone May 28, 2020
@@ -230,6 +251,48 @@ func NewInitApp(
app.subspaces[slashing.ModuleName],
)

app.crisisKeeper = crisis.NewKeeper(
Copy link
Member

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.

app/app.go Outdated Show resolved Hide resolved
)
// 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)
Copy link
Member

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.

Copy link
Member

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

@antho1404 antho1404 merged commit 44b3aab into dev Jun 3, 2020
@antho1404 antho1404 deleted the feature/add-modules branch June 3, 2020 11:50
@NicolasMahe NicolasMahe mentioned this pull request Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add cosmos modules
2 participants