Go-ethereum: geth start-up configuration file

Created on 12 Dec 2015  路  3Comments  路  Source: ethereum/go-ethereum

Would be nice to have a configuration file that has the various geth command line parameters (JSON, yaml, ini, dotfile, etc...). Today we get around this by creating a shell script but it would be nice to have something better for automated deploys of geth nodes.

geth --config ~/.ethereum/geth.[json,yaml,ini,etc.]

Most helpful comment

I would like to petition/request that this be reconsidered as a feature.

@obscuren you say that they tend to bite people in the ass. I don't see why the implementation of a config file cannot be done so that it protects people from the common pitfalls.

  1. If a config value is present in the file that doesn't map to one of the allowed options display a warning or throw an error.
  2. At startup, if a config file was found or used, print out a message indicating as much: "Loaded configuration options /path/to/config.something"

As for maintenance overhead, it has been almost a year since this was first proposed. I understand there is overhead here, but configuration via config file is extremely common and geth has matured a lot in the last 10 months.

All 3 comments

This will not be implemented for numerous reason and one of them is maintenance. Configuration files tend to bite people in the ass and therefor we'd rather not see it implemented.

I don't think .sh files are that bad tho, they are actually rather nice and feedback is given when a bad configuration parameter is being used.

I would like to petition/request that this be reconsidered as a feature.

@obscuren you say that they tend to bite people in the ass. I don't see why the implementation of a config file cannot be done so that it protects people from the common pitfalls.

  1. If a config value is present in the file that doesn't map to one of the allowed options display a warning or throw an error.
  2. At startup, if a config file was found or used, print out a message indicating as much: "Loaded configuration options /path/to/config.something"

As for maintenance overhead, it has been almost a year since this was first proposed. I understand there is overhead here, but configuration via config file is extremely common and geth has matured a lot in the last 10 months.

Added in #13875, released in 1.6.0.

Was this page helpful?
0 / 5 - 0 ratings