diff --git a/CHANGELOG.md b/CHANGELOG.md index 87527b2669d..d645646b2d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,8 +24,9 @@ - [11546](https://github.com/vegaprotocol/vega/issues/11546) - Add validation to market proposals metadata. - [11562](https://github.com/vegaprotocol/vega/issues/11562) - Update average notional metric with mark price at the end of the epoch and when calculating live score. - [11570](https://github.com/vegaprotocol/vega/issues/11570) - Include the required set of parties for evaluation for eligible entities reward. -- [11576](https://github.com/vegaprotocol/vega/issues/11576) - Replace additional rebate validation with a cap. -- [11533](https://github.com/vegaprotocol/vega/issues/11533) - Suppose per party fee discounts in fee estimation. +- [11576](https://github.com/vegaprotocol/vega/issues/11576) - Replace additional rebate validation with a cap. +- [11533](https://github.com/vegaprotocol/vega/issues/11533) - Suppose per party fee discounts in fee estimation. +- [10716](https://github.com/vegaprotocol/vega/issues/10716) - Set Tendermint defaults during init. ### 🐛 Fixes @@ -40,7 +41,7 @@ - [11544](https://github.com/vegaprotocol/vega/issues/11544) - Fix empty candles stream. - [11579](https://github.com/vegaprotocol/vega/issues/11579) - Spot calculate fee on amend, use order price if no amended price is provided. - [11585](https://github.com/vegaprotocol/vega/issues/11585) - Initialise rebate stats service in API. -- [11592](https://github.com/vegaprotocol/vega/issues/11592) - Fix the order of calls at end of epoch between rebate engine and market tracker. +- [11592](https://github.com/vegaprotocol/vega/issues/11592) - Fix the order of calls at end of epoch between rebate engine and market tracker. ## 0.77.5 diff --git a/cmd/vega/commands/init.go b/cmd/vega/commands/init.go index 1e9537ad758..1b15750733b 100644 --- a/cmd/vega/commands/init.go +++ b/cmd/vega/commands/init.go @@ -20,6 +20,7 @@ import ( "errors" "fmt" "os" + "path/filepath" "time" "code.vegaprotocol.io/vega/core/config" @@ -127,7 +128,19 @@ func (opts *InitCmd) Execute(args []string) error { if !initCmd.NoTendermint { tmCfg := tmcfg.DefaultConfig() tmCfg.SetRoot(os.ExpandEnv(initCmd.TendermintHome)) + // add a few defaults + tmCfg.P2P.MaxPacketMsgPayloadSize = 16384 + tmCfg.P2P.SendRate = 20000000 + tmCfg.P2P.RecvRate = 20000000 + tmCfg.Mempool.Size = 10000 + tmCfg.Mempool.CacheSize = 20000 + tmCfg.Consensus.TimeoutCommit = 0 * time.Second + tmCfg.Consensus.SkipTimeoutCommit = true + tmCfg.Consensus.CreateEmptyBlocksInterval = 1 * time.Second + tmCfg.Storage.DiscardABCIResponses = true tmcfg.EnsureRoot(tmCfg.RootDir) + // then rewrite the config to apply the changes, EnsureRoot create the config, but with a default config + tmcfg.WriteConfigFile(filepath.Join(tmCfg.RootDir, tmcfg.DefaultConfigDir, tmcfg.DefaultConfigFileName), tmCfg) if err := initTendermintConfiguration(output, logger, tmCfg); err != nil { return fmt.Errorf("couldn't initialise tendermint %w", err) }