Merge PR #3333: F1 storage efficiency improvements

This commit is contained in:
Christopher Goes
2019-01-23 12:37:03 +01:00
committed by GitHub
parent a27ef7f7d1
commit b5e245fee3
14 changed files with 273 additions and 35 deletions
+2 -2
View File
@@ -74,10 +74,10 @@ func (app *GaiaApp) prepForZeroHeightGenesis(ctx sdk.Context) {
}
// clear validator slash events
app.distrKeeper.DeleteValidatorSlashEvents(ctx)
app.distrKeeper.DeleteAllValidatorSlashEvents(ctx)
// clear validator historical rewards
app.distrKeeper.DeleteValidatorHistoricalRewards(ctx)
app.distrKeeper.DeleteAllValidatorHistoricalRewards(ctx)
// set context height to zero
height := ctx.BlockHeight()