Skip to content

Commit

Permalink
Merge pull request #1 from UnityChaos/patch-2
Browse files Browse the repository at this point in the history
Add real height gates to IBC bug fix
  • Loading branch information
ValarDragon authored Dec 17, 2021
2 parents 738b3f6 + 3c97cd2 commit 7ba178d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/02-client/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func (k Keeper) ValidateSelfClient(ctx sdk.Context, clientState exported.ClientS

// Osmosis v6 patch. If height > 300, do correct logic on fixed app.go
// Prior to fork height, we panic with the same error we were getting before.
if ctx.BlockHeight() > 300 {
if ctx.BlockHeight() > 2464000 || ctx.BlockHeight() < 2383300 {
expectedUbdPeriod := k.stakingKeeper.UnbondingTime(ctx)
if expectedUbdPeriod != tmClient.UnbondingPeriod {
return sdkerrors.Wrapf(types.ErrInvalidClient, "invalid unbonding period. expected: %s, got: %s",
Expand Down

0 comments on commit 7ba178d

Please sign in to comment.