Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into hoa/test
Browse files Browse the repository at this point in the history
  • Loading branch information
hoank101 authored Jan 18, 2024
2 parents 4114e04 + 1fc6fc3 commit b0de89a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
10 changes: 8 additions & 2 deletions cosmos/config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
package config

import (
"time"

"github.com/berachain/polaris/eth/node"
"github.com/berachain/polaris/eth/polar"

Expand All @@ -33,8 +35,8 @@ import (
// for the application.
func RecommendedCometBFTConfig() *cmtcfg.Config {
cfg := cmtcfg.DefaultConfig()
cfg.Mempool.Size = 30000
cfg.Mempool.CacheSize = 30000
cfg.Mempool.Size = 3000
cfg.Mempool.CacheSize = 250000
cfg.Mempool.Recheck = true
cfg.Mempool.Type = "flood"

Expand All @@ -43,6 +45,10 @@ func RecommendedCometBFTConfig() *cmtcfg.Config {

cfg.TxIndex.Indexer = "null"

cfg.Consensus.TimeoutPropose = 3 * time.Second

Check failure on line 48 in cosmos/config/default.go

View workflow job for this annotation

GitHub Actions / ci (lint, polaris-linux-latest, 1.21.6)

mnd: Magic number: 3, in <operation> detected (gomnd)
cfg.Consensus.TimeoutPrevote = 1 * time.Second
cfg.Consensus.TimeoutPrecommit = 1 * time.Second

cfg.Instrumentation.Prometheus = true
return cfg
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/testapp/docker/local/config/app.toml
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ max-block-history = "1024"
default = "1000000000"

# Maximum gas price value
max-price = "500000000000"
max-price = "500000000000000"

# Prices to ignore for gas price determination
ignore-price = "2"
Expand Down
4 changes: 3 additions & 1 deletion eth/polar/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import (
)

const (

// gpoDefault is the default gpo starting point.
gpoDefault = 1000000000

Expand All @@ -50,10 +49,13 @@ const (
func DefaultConfig() *Config {
gpoConfig := ethconfig.FullNodeGPO
gpoConfig.Default = big.NewInt(gpoDefault)
gpoConfig.MaxPrice = big.NewInt(ethparams.GWei * 10000) //nolint:gomnd // default.
minerCfg := miner.DefaultConfig
minerCfg.Etherbase = common.HexToAddress(developmentCoinbase)
minerCfg.GasPrice = big.NewInt(1)
legacyPool := legacypool.DefaultConfig
legacyPool.NoLocals = true
legacyPool.PriceLimit = 8 // to handle the low base fee.
legacyPool.Journal = ""

return &Config{
Expand Down

0 comments on commit b0de89a

Please sign in to comment.