Skip to content

Commit

Permalink
Fix hook
Browse files Browse the repository at this point in the history
  • Loading branch information
danil-lashin committed Dec 2, 2021
1 parent 50f0ddd commit 3763cbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions module/x/mhub2/keeper/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ func (h Hooks) AfterValidatorBeginUnbonding(ctx sdk.Context, _ sdk.ConsAddress,
// The reason for creating valset requests in endblock is to create only one valset request per block,
// if multiple validators starts unbonding at same block.

h.k.setLastUnbondingBlockHeight(ctx, uint64(ctx.BlockHeight()))

//h.k.setLastUnbondingBlockHeight(ctx, uint64(ctx.BlockHeight())) todo
}

func (h Hooks) BeforeDelegationCreated(_ sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) {
Expand Down

0 comments on commit 3763cbb

Please sign in to comment.