erigontech / erigon

Ethereum implementation on the efficiency frontier https://erigon.gitbook.io
GNU Lesser General Public License v3.0
3.1k stars 1.08k forks source link

feat: output sample config #10450

Open banteg opened 3 months ago

banteg commented 3 months ago

Rationale

erigon supports a lot of options, and editing a commented out config, enabling what you need, might be a bit easier on the user than constantly referencing the help page.

i suggest we add a command that outputs a sample config in any format erigon supports (yaml, toml).

Implementation

i made a sample script here that converts the --help command to a yaml config. https://gist.github.com/banteg/9427a4830be5a55f821064cdb02220d1

AskAlexSharov commented 3 months ago

see also geth dumpconfig: https://geth.ethereum.org/docs/fundamentals/config-files