Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: legacyP2P #12067

Closed
wants to merge 12 commits into from
2 changes: 2 additions & 0 deletions server/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ func interceptConfigs(rootViper *viper.Viper, customAppTemplate string, customCo
conf.P2P.RecvRate = 5120000
conf.P2P.SendRate = 5120000
conf.Consensus.TimeoutCommit = 5 * time.Second
conf.P2P.UseLegacy = true
alexanderbez marked this conversation as resolved.
Show resolved Hide resolved

if err := tmcfg.WriteConfigFile(rootDir, conf); err != nil {
return nil, fmt.Errorf("error writing config file: %w", err)
}
Expand Down
1 change: 1 addition & 0 deletions testutil/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ func New(l Logger, baseDir string, cfg Config) (*Network, error) {
tmCfg := ctx.Config
tmCfg.Consensus.TimeoutCommit = cfg.TimeoutCommit
tmCfg.Mode = config.ModeValidator
tmCfg.P2P.UseLegacy = true

// Only allow the first validator to expose an RPC, API and gRPC
// server/client due to Tendermint in-process constraints.
Expand Down
1 change: 1 addition & 0 deletions x/genutil/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func GenAppStateFromConfig(cdc codec.JSONCodec, txEncodingConfig client.TxEncodi
}

config.P2P.PersistentPeers = persistentPeers
config.P2P.BootstrapPeers = persistentPeers
cfg.WriteConfigFile(config.RootDir, config)

// if there are no gen txs to be processed, return the default empty state
Expand Down