mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 09:23:48 +00:00
First conf.file commit
This commit is contained in:
parent
4bb3c89d44
commit
9e7ee2c892
1 changed files with 7 additions and 0 deletions
|
|
@ -123,6 +123,13 @@ func makeConfigNode(ctx *cli.Context) (*node.Node, gethConfig) {
|
|||
if err := loadConfig(file, &cfg); err != nil {
|
||||
utils.Fatalf("%v", err)
|
||||
}
|
||||
} else {
|
||||
// Load config file from default place.
|
||||
if err := loadConfig("./geth_conf.toml", &cfg); err != nil {
|
||||
if ctx.Command.Name != "dumpconfig" {
|
||||
utils.Fatalf("Config not found: %v. Put config file here or set config path with flag --config /path/to/your_config.toml", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Apply flags.
|
||||
|
|
|
|||
Loading…
Reference in a new issue