diff --git a/.pending/bugfixes/gaia/3999-fix-distribution-export b/.pending/bugfixes/gaia/3999-fix-distribution-export new file mode 100644 index 000000000000..25d34de6c4ce --- /dev/null +++ b/.pending/bugfixes/gaia/3999-fix-distribution-export @@ -0,0 +1 @@ +#3999 Fix distribution delegation for zero height export bug diff --git a/cmd/gaia/app/export.go b/cmd/gaia/app/export.go index 3bd439396262..773a718388a9 100644 --- a/cmd/gaia/app/export.go +++ b/cmd/gaia/app/export.go @@ -118,6 +118,7 @@ func (app *GaiaApp) prepForZeroHeightGenesis(ctx sdk.Context, jailWhiteList []st // reinitialize all delegations for _, del := range dels { app.distrKeeper.Hooks().BeforeDelegationCreated(ctx, del.DelegatorAddress, del.ValidatorAddress) + app.distrKeeper.Hooks().AfterDelegationModified(ctx, del.DelegatorAddress, del.ValidatorAddress) } // reset context height