From 3763cbb635de63b56e5e70d29a16acab546911cb Mon Sep 17 00:00:00 2001 From: Daniil Lashin Date: Thu, 2 Dec 2021 16:16:51 +0300 Subject: [PATCH] Fix hook --- module/x/mhub2/keeper/hooks.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/x/mhub2/keeper/hooks.go b/module/x/mhub2/keeper/hooks.go index 6ba34c8..eca2043 100644 --- a/module/x/mhub2/keeper/hooks.go +++ b/module/x/mhub2/keeper/hooks.go @@ -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) {