|
|
@ -155,11 +155,6 @@ var ( |
|
|
|
Usage: "Sepolia network: pre-configured proof-of-work test network", |
|
|
|
Usage: "Sepolia network: pre-configured proof-of-work test network", |
|
|
|
Category: flags.EthCategory, |
|
|
|
Category: flags.EthCategory, |
|
|
|
} |
|
|
|
} |
|
|
|
KilnFlag = &cli.BoolFlag{ |
|
|
|
|
|
|
|
Name: "kiln", |
|
|
|
|
|
|
|
Usage: "Kiln network: pre-configured proof-of-work to proof-of-stake test network", |
|
|
|
|
|
|
|
Category: flags.EthCategory, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Dev mode
|
|
|
|
// Dev mode
|
|
|
|
DeveloperFlag = &cli.BoolFlag{ |
|
|
|
DeveloperFlag = &cli.BoolFlag{ |
|
|
@ -1002,7 +997,6 @@ var ( |
|
|
|
RinkebyFlag, |
|
|
|
RinkebyFlag, |
|
|
|
GoerliFlag, |
|
|
|
GoerliFlag, |
|
|
|
SepoliaFlag, |
|
|
|
SepoliaFlag, |
|
|
|
KilnFlag, |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
// NetworkFlags is the flag group of all built-in supported networks.
|
|
|
|
// NetworkFlags is the flag group of all built-in supported networks.
|
|
|
|
NetworkFlags = append([]cli.Flag{MainnetFlag}, TestnetFlags...) |
|
|
|
NetworkFlags = append([]cli.Flag{MainnetFlag}, TestnetFlags...) |
|
|
@ -1035,9 +1029,6 @@ func MakeDataDir(ctx *cli.Context) string { |
|
|
|
if ctx.Bool(SepoliaFlag.Name) { |
|
|
|
if ctx.Bool(SepoliaFlag.Name) { |
|
|
|
return filepath.Join(path, "sepolia") |
|
|
|
return filepath.Join(path, "sepolia") |
|
|
|
} |
|
|
|
} |
|
|
|
if ctx.Bool(KilnFlag.Name) { |
|
|
|
|
|
|
|
return filepath.Join(path, "kiln") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return path |
|
|
|
return path |
|
|
|
} |
|
|
|
} |
|
|
|
Fatalf("Cannot determine default data directory, please set manually (--datadir)") |
|
|
|
Fatalf("Cannot determine default data directory, please set manually (--datadir)") |
|
|
@ -1092,8 +1083,6 @@ func setBootstrapNodes(ctx *cli.Context, cfg *p2p.Config) { |
|
|
|
urls = params.RinkebyBootnodes |
|
|
|
urls = params.RinkebyBootnodes |
|
|
|
case ctx.Bool(GoerliFlag.Name): |
|
|
|
case ctx.Bool(GoerliFlag.Name): |
|
|
|
urls = params.GoerliBootnodes |
|
|
|
urls = params.GoerliBootnodes |
|
|
|
case ctx.Bool(KilnFlag.Name): |
|
|
|
|
|
|
|
urls = params.KilnBootnodes |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// don't apply defaults if BootstrapNodes is already set
|
|
|
|
// don't apply defaults if BootstrapNodes is already set
|
|
|
@ -1550,8 +1539,6 @@ func SetDataDir(ctx *cli.Context, cfg *node.Config) { |
|
|
|
cfg.DataDir = filepath.Join(node.DefaultDataDir(), "goerli") |
|
|
|
cfg.DataDir = filepath.Join(node.DefaultDataDir(), "goerli") |
|
|
|
case ctx.Bool(SepoliaFlag.Name) && cfg.DataDir == node.DefaultDataDir(): |
|
|
|
case ctx.Bool(SepoliaFlag.Name) && cfg.DataDir == node.DefaultDataDir(): |
|
|
|
cfg.DataDir = filepath.Join(node.DefaultDataDir(), "sepolia") |
|
|
|
cfg.DataDir = filepath.Join(node.DefaultDataDir(), "sepolia") |
|
|
|
case ctx.Bool(KilnFlag.Name) && cfg.DataDir == node.DefaultDataDir(): |
|
|
|
|
|
|
|
cfg.DataDir = filepath.Join(node.DefaultDataDir(), "kiln") |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1742,7 +1729,7 @@ func CheckExclusive(ctx *cli.Context, args ...interface{}) { |
|
|
|
// SetEthConfig applies eth-related command line flags to the config.
|
|
|
|
// SetEthConfig applies eth-related command line flags to the config.
|
|
|
|
func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) { |
|
|
|
func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) { |
|
|
|
// Avoid conflicting network flags
|
|
|
|
// Avoid conflicting network flags
|
|
|
|
CheckExclusive(ctx, MainnetFlag, DeveloperFlag, RopstenFlag, RinkebyFlag, GoerliFlag, SepoliaFlag, KilnFlag) |
|
|
|
CheckExclusive(ctx, MainnetFlag, DeveloperFlag, RopstenFlag, RinkebyFlag, GoerliFlag, SepoliaFlag) |
|
|
|
CheckExclusive(ctx, LightServeFlag, SyncModeFlag, "light") |
|
|
|
CheckExclusive(ctx, LightServeFlag, SyncModeFlag, "light") |
|
|
|
CheckExclusive(ctx, DeveloperFlag, ExternalSignerFlag) // Can't use both ephemeral unlocked and external signer
|
|
|
|
CheckExclusive(ctx, DeveloperFlag, ExternalSignerFlag) // Can't use both ephemeral unlocked and external signer
|
|
|
|
if ctx.String(GCModeFlag.Name) == "archive" && ctx.Uint64(TxLookupLimitFlag.Name) != 0 { |
|
|
|
if ctx.String(GCModeFlag.Name) == "archive" && ctx.Uint64(TxLookupLimitFlag.Name) != 0 { |
|
|
@ -1917,12 +1904,6 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) { |
|
|
|
} |
|
|
|
} |
|
|
|
cfg.Genesis = core.DefaultGoerliGenesisBlock() |
|
|
|
cfg.Genesis = core.DefaultGoerliGenesisBlock() |
|
|
|
SetDNSDiscoveryDefaults(cfg, params.GoerliGenesisHash) |
|
|
|
SetDNSDiscoveryDefaults(cfg, params.GoerliGenesisHash) |
|
|
|
case ctx.Bool(KilnFlag.Name): |
|
|
|
|
|
|
|
if !ctx.IsSet(NetworkIdFlag.Name) { |
|
|
|
|
|
|
|
cfg.NetworkId = 1337802 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
cfg.Genesis = core.DefaultKilnGenesisBlock() |
|
|
|
|
|
|
|
SetDNSDiscoveryDefaults(cfg, params.KilnGenesisHash) |
|
|
|
|
|
|
|
case ctx.Bool(DeveloperFlag.Name): |
|
|
|
case ctx.Bool(DeveloperFlag.Name): |
|
|
|
if !ctx.IsSet(NetworkIdFlag.Name) { |
|
|
|
if !ctx.IsSet(NetworkIdFlag.Name) { |
|
|
|
cfg.NetworkId = 1337 |
|
|
|
cfg.NetworkId = 1337 |
|
|
@ -2230,8 +2211,6 @@ func MakeGenesis(ctx *cli.Context) *core.Genesis { |
|
|
|
genesis = core.DefaultRinkebyGenesisBlock() |
|
|
|
genesis = core.DefaultRinkebyGenesisBlock() |
|
|
|
case ctx.Bool(GoerliFlag.Name): |
|
|
|
case ctx.Bool(GoerliFlag.Name): |
|
|
|
genesis = core.DefaultGoerliGenesisBlock() |
|
|
|
genesis = core.DefaultGoerliGenesisBlock() |
|
|
|
case ctx.Bool(KilnFlag.Name): |
|
|
|
|
|
|
|
genesis = core.DefaultKilnGenesisBlock() |
|
|
|
|
|
|
|
case ctx.Bool(DeveloperFlag.Name): |
|
|
|
case ctx.Bool(DeveloperFlag.Name): |
|
|
|
Fatalf("Developer chains are ephemeral") |
|
|
|
Fatalf("Developer chains are ephemeral") |
|
|
|
} |
|
|
|
} |
|
|
|