Skip to content

Commit e7bb1cb

Browse files
committed
fix: increase initial block height
* due to HumanReadableUpgradeBlockHeightPerChainID set to 490 currently for devnet chain ids, we need to prevent this from happening for the first blocks * hopefully can remove this again in the future
1 parent 53defdb commit e7bb1cb

File tree

1 file changed

+2
-1
lines changed
  • packages/injective-test-tube/libinjectivetesttube/testenv

1 file changed

+2
-1
lines changed

packages/injective-test-tube/libinjectivetesttube/testenv/setup.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,12 @@ func InitChain(appInstance *app.InjectiveApp) (sdk.Context, secp256k1.PrivKey) {
159159
ConsensusParams: DefaultConsensusParams,
160160
AppStateBytes: stateBytes,
161161
Time: now,
162+
InitialHeight: 500,
162163
},
163164
)
164165
requireNoErr(err)
165166

166-
ctx := appInstance.NewUncachedContext(false, cmtproto.Header{Height: 0, ChainID: "injective-777", Time: now})
167+
ctx := appInstance.NewUncachedContext(false, cmtproto.Header{Height: 499, ChainID: "injective-777", Time: now})
167168

168169
return ctx, valPriv
169170
}

0 commit comments

Comments
 (0)