Merge PR #3999: Fix distribution zero height export bug

This commit is contained in:
frog power 4000 2019-04-02 10:24:46 -04:00 committed by Alexander Bezobchuk
parent 06f741609b
commit da17a6d725
2 changed files with 2 additions and 0 deletions

View File

@ -0,0 +1 @@
#3999 Fix distribution delegation for zero height export bug

View File

@ -118,6 +118,7 @@ func (app *GaiaApp) prepForZeroHeightGenesis(ctx sdk.Context, jailWhiteList []st
// reinitialize all delegations // reinitialize all delegations
for _, del := range dels { for _, del := range dels {
app.distrKeeper.Hooks().BeforeDelegationCreated(ctx, del.DelegatorAddress, del.ValidatorAddress) app.distrKeeper.Hooks().BeforeDelegationCreated(ctx, del.DelegatorAddress, del.ValidatorAddress)
app.distrKeeper.Hooks().AfterDelegationModified(ctx, del.DelegatorAddress, del.ValidatorAddress)
} }
// reset context height // reset context height