Skip to content

Commit

Permalink
Merge PR #3999: Fix distribution zero height export bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rigelrozanski authored and alexanderbez committed Apr 2, 2019
1 parent 06f7416 commit da17a6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .pending/bugfixes/gaia/3999-fix-distribution-export
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#3999 Fix distribution delegation for zero height export bug
1 change: 1 addition & 0 deletions cmd/gaia/app/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da17a6d

Please sign in to comment.