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

Commit

Permalink
update default configs for gpo
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Jan 17, 2024
1 parent 680f70e commit 17ea475
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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 17ea475

Please sign in to comment.