mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
cmd/utils: print log info when custom chain config is used
This commit is contained in:
parent
26c5ca9e07
commit
72389e72ab
1 changed files with 4 additions and 2 deletions
|
|
@ -1927,9 +1927,11 @@ func MakeBeaconLightConfig(ctx *cli.Context) bparams.ClientConfig {
|
||||||
} else {
|
} else {
|
||||||
Fatalf("Invalid hex string", "beacon.genesis.gvroot", ctx.String(BeaconGenesisRootFlag.Name), "error", err)
|
Fatalf("Invalid hex string", "beacon.genesis.gvroot", ctx.String(BeaconGenesisRootFlag.Name), "error", err)
|
||||||
}
|
}
|
||||||
if err := config.ChainConfig.LoadForks(ctx.String(BeaconConfigFlag.Name)); err != nil {
|
configFile := ctx.String(BeaconConfigFlag.Name)
|
||||||
Fatalf("Could not load beacon chain config file", "file name", ctx.String(BeaconConfigFlag.Name), "error", err)
|
if err := config.ChainConfig.LoadForks(configFile); err != nil {
|
||||||
|
Fatalf("Could not load beacon chain config", "file", configFile, "error", err)
|
||||||
}
|
}
|
||||||
|
log.Info("Using custom beacon chain config", "file", configFile)
|
||||||
} else {
|
} else {
|
||||||
if ctx.IsSet(BeaconGenesisRootFlag.Name) {
|
if ctx.IsSet(BeaconGenesisRootFlag.Name) {
|
||||||
Fatalf("Genesis root is specified but custom beacon chain config is missing")
|
Fatalf("Genesis root is specified but custom beacon chain config is missing")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue