mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
* updated simple.json and simple.hcl * added annotations for developer and grpc block * added toml tags and simple.toml file * added support for toml config files * updated simple files toml, hcl, json * added config.toml in builder/files and updated bor.service * add dumpconfig command in cli for exporting configs * update docs * updated .goreleaser.yml (POS-651) * changed --config to -config * added test config for tests and fixed lint errors * made fields of type big.int and time.Duration private, removed merge from dumpconfig, setting up default values to the Raw fields in dumpconfig, and fixed one lint error * fixed lint errors (strange) * lint fix * private no-more, using '-' in name tags to ignore * updated name tags, made c.configFile as a stringFlag (only one config file supported) and updated the merge logic in command.go -> Run() * fix: set method for big.Int flags, added a TODO * handeled bigInt and timeDuration type, bug fix in config_legacy, lint fix * updated flags, consistent across flags.go and config.go * fixed config test and updated test hcl, json config files * updated config legacy test * added test to check values of cmd flags, restructured Run in command.go, linter fix * fix linters * lint again * changed 2 flags and assert -> require * changed the 2 flags back * updated correct congig.toml path and made mainnet default * updated config.toml with new flags * added sample config (toml) file * removed sample-config.toml and added it in docs/config.md Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
44 lines
No EOL
1.2 KiB
TOML
44 lines
No EOL
1.2 KiB
TOML
# chain = "mumbai"
|
|
chain = "mainnet"
|
|
datadir = "/var/lib/bor/data"
|
|
syncmode = "full"
|
|
|
|
[telemetry]
|
|
metrics = true
|
|
prometheus-addr = "127.0.0.1:7071"
|
|
|
|
[miner]
|
|
# *** Validator params
|
|
# *** Uncomment and configure the following lines in case you run a validator.
|
|
# mine = true
|
|
# etherbase = "VALIDATOR ADDRESS"
|
|
gasprice = "30000000000"
|
|
gasceil = 20000000
|
|
|
|
|
|
[txpool]
|
|
accountqueue = 16
|
|
accountslots = 16
|
|
globalqueue = 32768
|
|
globalslots = 32768
|
|
lifetime = "1h30m0s"
|
|
nolocals = true
|
|
pricelimit = 30000000000
|
|
|
|
[p2p]
|
|
# *** Validator params
|
|
# *** Uncomment and configure the following lines in case you run a validator.
|
|
# nodiscover = true
|
|
# maxpeers = 1
|
|
[p2p.discovery]
|
|
bootnodes = ["enode://0cb82b395094ee4a2915e9714894627de9ed8498fb881cec6db7c65e8b9a5bd7f2f25cc84e71e89d0947e51c76e85d0847de848c7782b13c0255247a6758178c@44.232.55.71:30303", "enode://88116f4295f5a31538ae409e4d44ad40d22e44ee9342869e7d68bdec55b0f83c1530355ce8b41fbec0928a7d75a5745d528450d30aec92066ab6ba1ee351d710@159.203.9.164:30303"]
|
|
|
|
# *** Validator params
|
|
# *** Uncomment and configure the following lines in case you run a validator.
|
|
|
|
# keystore = "/var/lib/bor/keystore"
|
|
|
|
# [accounts]
|
|
# allow-insecure-unlock = true
|
|
# password = "/var/lib/bor/password.txt"
|
|
# unlock = ["VALIDATOR ADDRESS"] |