Skip to content

Commit 7ba178d

Browse files
authored
Merge pull request #1 from UnityChaos/patch-2
Add real height gates to IBC bug fix
2 parents 738b3f6 + 3c97cd2 commit 7ba178d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/02-client/keeper/keeper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ func (k Keeper) ValidateSelfClient(ctx sdk.Context, clientState exported.ClientS
309309

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

0 commit comments

Comments
 (0)