From 14831998b3c2d7ce8bc4d92229e6b4b4f99850d8 Mon Sep 17 00:00:00 2001 From: Tyler <48813565+technicallyty@users.noreply.github.com> Date: Thu, 29 Aug 2024 11:45:22 -0700 Subject: [PATCH] patch --- docs/developers/integration.mdx | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/developers/integration.mdx b/docs/developers/integration.mdx index f07c0506d..6dc22d4e6 100644 --- a/docs/developers/integration.mdx +++ b/docs/developers/integration.mdx @@ -437,8 +437,23 @@ func NewApp( // initialize the chain with markets in state. app.SetInitChainer(func(ctx sdk.Context, req *types.RequestInitChain) (*types.ResponseInitChain, error) { - // set vote extension height. (must be greater than 1). - req.ConsensusParams.Abci.VoteExtensionsEnableHeight = 2 + consensusParams, err := app.ConsensusParamsKeeper.Params(ctx, nil) + if err != nil { + return nil, err + } + consensusParams.Params.Abci = &types.ABCIParams{ + VoteExtensionsEnableHeight: 5, // must be greater than 1 + } + _, err = app.ConsensusParamsKeeper.UpdateParams(ctx, &consensustypes.MsgUpdateParams{ + Authority: app.ConsensusParamsKeeper.GetAuthority(), + Block: consensusParams.Params.Block, + Evidence: consensusParams.Params.Evidence, + Validator: consensusParams.Params.Validator, + Abci: consensusParams.Params.Abci, + }) + if err != nil { + return nil, err + } // initialize module state app.OracleKeeper.InitGenesis(ctx, *oracletypes.DefaultGenesisState())