Update default flags (#600)

* internal/cli/server: use geth's default for txpool.pricelimit and add comments

* builder/files: update config.toml for mainnet

* packaging/templates: update defaults for mainnet and mumbai

* internal/cli/server: skip overriding cache

* packaging/templates: update cache value for mainnet

* packaging/templates: update gcmode for archive mumbai node
This commit is contained in:
Manav Darji 2022-11-25 21:56:31 +05:30 committed by GitHub
parent d69cb20ba9
commit 095ce5e1da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 40 additions and 47 deletions

View file

@ -52,7 +52,7 @@ syncmode = "full"
# pricebump = 10
[miner]
gaslimit = 20000000
gaslimit = 30000000
gasprice = "30000000000"
# mine = true
# etherbase = "VALIDATOR ADDRESS"
@ -87,11 +87,11 @@ syncmode = "full"
# vhosts = ["*"]
# corsdomain = ["*"]
# [gpo]
[gpo]
# blocks = 20
# percentile = 60
# maxprice = "5000000000000"
# ignoreprice = "2"
ignoreprice = "30000000000"
[telemetry]
metrics = true

View file

@ -428,7 +428,7 @@ func DefaultConfig() *Config {
NoLocals: false,
Journal: "transactions.rlp",
Rejournal: 1 * time.Hour,
PriceLimit: 30000000000,
PriceLimit: 1, // geth's default
PriceBump: 10,
AccountSlots: 16,
GlobalSlots: 32768,
@ -439,8 +439,8 @@ func DefaultConfig() *Config {
Sealer: &SealerConfig{
Enabled: false,
Etherbase: "",
GasCeil: 30_000_000,
GasPrice: big.NewInt(1 * params.GWei),
GasCeil: 30_000_000, // geth's default
GasPrice: big.NewInt(1 * params.GWei), // geth's default
ExtraData: "",
},
Gpo: &GpoConfig{
@ -497,7 +497,7 @@ func DefaultConfig() *Config {
},
},
Cache: &CacheConfig{
Cache: 1024,
Cache: 1024, // geth's default (suitable for mumbai)
PercDatabase: 50,
PercTrie: 15,
PercGc: 25,
@ -626,13 +626,6 @@ func (c *Config) loadChain() error {
c.P2P.Discovery.DNS = c.chain.DNS
}
// depending on the chain we have different cache values
if c.Chain == "mainnet" {
c.Cache.Cache = 4096
} else {
c.Cache.Cache = 1024
}
return nil
}

View file

@ -45,7 +45,7 @@ gcmode = "archive"
# pricebump = 10
[miner]
gaslimit = 20000000
gaslimit = 30000000
gasprice = "30000000000"
# mine = false
# etherbase = ""
@ -79,11 +79,11 @@ gcmode = "archive"
# vhosts = ["*"]
# corsdomain = ["*"]
# [gpo]
[gpo]
# blocks = 20
# percentile = 60
# maxprice = "5000000000000"
# ignoreprice = "2"
ignoreprice = "30000000000"
[telemetry]
metrics = true
@ -102,8 +102,8 @@ gcmode = "archive"
# organization = ""
# [telemetry.influx.tags]
# [cache]
# cache = 1024
[cache]
cache = 4096
# gc = 25
# snapshot = 10
# database = 50

View file

@ -45,7 +45,7 @@ syncmode = "full"
# pricebump = 10
[miner]
gaslimit = 20000000
gaslimit = 30000000
gasprice = "30000000000"
# mine = false
# etherbase = ""
@ -79,11 +79,11 @@ syncmode = "full"
# vhosts = ["*"]
# corsdomain = ["*"]
# [gpo]
[gpo]
# blocks = 20
# percentile = 60
# maxprice = "5000000000000"
# ignoreprice = "2"
ignoreprice = "30000000000"
[telemetry]
metrics = true
@ -102,8 +102,8 @@ syncmode = "full"
# organization = ""
# [telemetry.influx.tags]
# [cache]
# cache = 1024
[cache]
cache = 4096
# gc = 25
# snapshot = 10
# database = 50

View file

@ -48,7 +48,7 @@ syncmode = "full"
[miner]
mine = true
gaslimit = 20000000
gaslimit = 30000000
gasprice = "30000000000"
# etherbase = ""
# extradata = ""
@ -81,11 +81,11 @@ syncmode = "full"
# vhosts = ["*"]
# corsdomain = ["*"]
# [gpo]
[gpo]
# blocks = 20
# percentile = 60
# maxprice = "5000000000000"
# ignoreprice = "2"
ignoreprice = "30000000000"
[telemetry]
metrics = true
@ -104,8 +104,8 @@ syncmode = "full"
# organization = ""
# [telemetry.influx.tags]
# [cache]
# cache = 1024
[cache]
cache = 4096
# gc = 25
# snapshot = 10
# database = 50

View file

@ -48,7 +48,7 @@ syncmode = "full"
[miner]
mine = true
gaslimit = 20000000
gaslimit = 30000000
gasprice = "30000000000"
# etherbase = ""
# extradata = ""
@ -81,11 +81,11 @@ syncmode = "full"
# vhosts = ["*"]
# corsdomain = ["*"]
# [gpo]
[gpo]
# blocks = 20
# percentile = 60
# maxprice = "5000000000000"
# ignoreprice = "2"
ignoreprice = "30000000000"
[telemetry]
metrics = true
@ -104,8 +104,8 @@ syncmode = "full"
# organization = ""
# [telemetry.influx.tags]
# [cache]
# cache = 1024
[cache]
cache = 4096
# gc = 25
# snapshot = 10
# database = 50

View file

@ -4,7 +4,7 @@ chain = "mumbai"
datadir = "/var/lib/bor/data"
# keystore = ""
syncmode = "full"
# gcmode = "full"
gcmode = "archive"
# snapshot = true
# ethstats = ""
@ -41,12 +41,12 @@ syncmode = "full"
# locals = []
# journal = ""
# rejournal = "1h0m0s"
# pricelimit = 30000000000
# pricelimit = 1
# pricebump = 10
[miner]
gaslimit = 20000000
# gasprice = "30000000000"
gaslimit = 30000000
# gasprice = "1000000000"
# mine = false
# etherbase = ""
# extradata = ""

View file

@ -41,12 +41,12 @@ syncmode = "full"
# locals = []
# journal = ""
# rejournal = "1h0m0s"
# pricelimit = 30000000000
# pricelimit = 1
# pricebump = 10
[miner]
gaslimit = 20000000
# gasprice = "30000000000"
gaslimit = 30000000
# gasprice = "1000000000"
# mine = false
# etherbase = ""
# extradata = ""

View file

@ -43,13 +43,13 @@ syncmode = "full"
# locals = []
# journal = ""
# rejournal = "1h0m0s"
# pricelimit = 30000000000
# pricelimit = 1
# pricebump = 10
[miner]
mine = true
gaslimit = 20000000
# gasprice = "30000000000"
gaslimit = 30000000
# gasprice = "1000000000"
# etherbase = ""
# extradata = ""

View file

@ -43,13 +43,13 @@ syncmode = "full"
# locals = []
# journal = ""
# rejournal = "1h0m0s"
# pricelimit = 30000000000
# pricelimit = 1
# pricebump = 10
[miner]
mine = true
gaslimit = 20000000
# gasprice = "30000000000"
gaslimit = 30000000
# gasprice = "1000000000"
# etherbase = ""
# extradata = ""