diff --git a/test/testground/compositions/standard/plan.toml b/test/testground/compositions/standard/plan.toml index b603130b2e..b9245addd2 100644 --- a/test/testground/compositions/standard/plan.toml +++ b/test/testground/compositions/standard/plan.toml @@ -29,6 +29,7 @@ inbound_peer_count = "40" outbound_peer_count = "10" gov_max_square_size = "128" max_block_bytes = "8000000" +mempool = "v1" [[groups]] diff --git a/test/testground/manifest.toml b/test/testground/manifest.toml index 95c411872c..b55028a8ec 100644 --- a/test/testground/manifest.toml +++ b/test/testground/manifest.toml @@ -39,3 +39,4 @@ inbound_peer_count = { type = "int", default = 40 } outbound_peer_count = { type = "int", default = 10 } gov_max_square_size = { type = "int", default = 128 } max_block_bytes = { type = "int", deafult = 8000000 } +mempool = { type = "string", default = "v1" } diff --git a/test/testground/network/params.go b/test/testground/network/params.go index 203b05d96c..4f9e439ff1 100644 --- a/test/testground/network/params.go +++ b/test/testground/network/params.go @@ -7,6 +7,7 @@ import ( "github.com/celestiaorg/celestia-app/app" "github.com/celestiaorg/celestia-app/app/encoding" + testgroundconsts "github.com/celestiaorg/celestia-app/pkg/appconsts/testground" "github.com/celestiaorg/celestia-app/test/util/genesis" blobtypes "github.com/celestiaorg/celestia-app/x/blob/types" srvconfig "github.com/cosmos/cosmos-sdk/server/config" @@ -33,6 +34,7 @@ const ( OutboundPeerCountParam = "outbound_peer_count" GovMaxSquareSizeParam = "gov_max_square_size" MaxBlockBytesParam = "max_block_bytes" + MempoolParam = "mempool" ) type Params struct { @@ -54,6 +56,7 @@ type Params struct { MaxBlockBytes int TimeoutCommit time.Duration TimeoutPropose time.Duration + Mempool string } func ParseParams(ecfg encoding.Config, runenv *runtime.RunEnv) (*Params, error) { @@ -106,6 +109,8 @@ func ParseParams(ecfg encoding.Config, runenv *runtime.RunEnv) (*Params, error) p.Pex = runenv.BooleanParam(PexParam) + p.Mempool = runenv.StringParam(MempoolParam) + return p, p.ValidateBasic() } @@ -134,6 +139,7 @@ func StandardCometConfig(params *Params) *tmconfig.Config { cmtcfg.Consensus.TimeoutCommit = params.TimeoutCommit cmtcfg.Consensus.TimeoutPropose = params.TimeoutPropose cmtcfg.TxIndex.Indexer = "kv" + cmtcfg.Mempool.Version = params.Mempool return cmtcfg } @@ -144,6 +150,7 @@ func StandardAppConfig(_ *Params) *srvconfig.Config { func StandardConsensusParams(params *Params) *tmproto.ConsensusParams { cp := app.DefaultConsensusParams() cp.Block.MaxBytes = int64(params.MaxBlockBytes) + cp.Version.AppVersion = testgroundconsts.Version return cp }