From da17a6d7253e258a286d72c92205b9c819666102 Mon Sep 17 00:00:00 2001 From: frog power 4000 Date: Tue, 2 Apr 2019 10:24:46 -0400 Subject: [PATCH] Merge PR #3999: Fix distribution zero height export bug --- .pending/bugfixes/gaia/3999-fix-distribution-export | 1 + cmd/gaia/app/export.go | 1 + 2 files changed, 2 insertions(+) create mode 100644 .pending/bugfixes/gaia/3999-fix-distribution-export diff --git a/.pending/bugfixes/gaia/3999-fix-distribution-export b/.pending/bugfixes/gaia/3999-fix-distribution-export new file mode 100644 index 0000000000..25d34de6c4 --- /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 3bd4393962..773a718388 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