Skip to content

Commit

Permalink
fix: consensus params
Browse files Browse the repository at this point in the history
  • Loading branch information
Senna46 committed Feb 13, 2024
1 parent 41f26b1 commit 3dd8d53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/util/testnode/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (

tmconfig "github.com/cometbft/cometbft/config"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
tmtypes "github.com/cometbft/cometbft/types"
srvconfig "github.com/cosmos/cosmos-sdk/server/config"
srvtypes "github.com/cosmos/cosmos-sdk/server/types"
)
Expand Down Expand Up @@ -129,7 +130,7 @@ func DefaultConfig() *Config {
}

func DefaultConsensusParams() *tmproto.ConsensusParams {
var cparams tmproto.ConsensusParams
cparams := tmtypes.DefaultConsensusParams().ToProto()
cparams.Block.MaxBytes = appconsts.DefaultMaxBytes
cparams.Version.App = appconsts.LatestVersion
return &cparams
Expand Down

0 comments on commit 3dd8d53

Please sign in to comment.