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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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