Skip to content

Commit 3c97cd2

Browse files
authored
Add real height gates to IBC bug fix
Height 2464000, targets Monday December 20th at 4:20pm UTC. Add height gate for v5 upgrade block, to allow v6 based testnets to create IBC channels from genesis.
1 parent 738b3f6 commit 3c97cd2

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)