@@ -134,7 +134,7 @@ var (
134
134
}
135
135
NetworkIdFlag = & cli.Uint64Flag {
136
136
Name : "networkid" ,
137
- Usage : "Explicitly set network id (integer)(For testnets: use --goerli, -- sepolia, --holesky instead)" ,
137
+ Usage : "Explicitly set network id (integer)(For testnets: use --sepolia, --holesky instead)" ,
138
138
Value : ethconfig .Defaults .NetworkId ,
139
139
Category : flags .EthCategory ,
140
140
}
@@ -143,11 +143,6 @@ var (
143
143
Usage : "Ethereum mainnet" ,
144
144
Category : flags .EthCategory ,
145
145
}
146
- GoerliFlag = & cli.BoolFlag {
147
- Name : "goerli" ,
148
- Usage : "Görli network: pre-configured proof-of-authority test network" ,
149
- Category : flags .EthCategory ,
150
- }
151
146
SepoliaFlag = & cli.BoolFlag {
152
147
Name : "sepolia" ,
153
148
Usage : "Sepolia network: pre-configured proof-of-work test network" ,
@@ -965,7 +960,6 @@ Please note that --` + MetricsHTTPFlag.Name + ` must be set to start the server.
965
960
var (
966
961
// TestnetFlags is the flag group of all built-in supported testnets.
967
962
TestnetFlags = []cli.Flag {
968
- GoerliFlag ,
969
963
SepoliaFlag ,
970
964
HoleskyFlag ,
971
965
}
@@ -988,9 +982,6 @@ var (
988
982
// then a subdirectory of the specified datadir will be used.
989
983
func MakeDataDir (ctx * cli.Context ) string {
990
984
if path := ctx .String (DataDirFlag .Name ); path != "" {
991
- if ctx .Bool (GoerliFlag .Name ) {
992
- return filepath .Join (path , "goerli" )
993
- }
994
985
if ctx .Bool (SepoliaFlag .Name ) {
995
986
return filepath .Join (path , "sepolia" )
996
987
}
@@ -1042,7 +1033,7 @@ func setNodeUserIdent(ctx *cli.Context, cfg *node.Config) {
1042
1033
//
1043
1034
// 1. --bootnodes flag
1044
1035
// 2. Config file
1045
- // 3. Network preset flags (e.g. --goerli )
1036
+ // 3. Network preset flags (e.g. --holesky )
1046
1037
// 4. default to mainnet nodes
1047
1038
func setBootstrapNodes (ctx * cli.Context , cfg * p2p.Config ) {
1048
1039
urls := params .MainnetBootnodes
@@ -1057,8 +1048,6 @@ func setBootstrapNodes(ctx *cli.Context, cfg *p2p.Config) {
1057
1048
urls = params .HoleskyBootnodes
1058
1049
case ctx .Bool (SepoliaFlag .Name ):
1059
1050
urls = params .SepoliaBootnodes
1060
- case ctx .Bool (GoerliFlag .Name ):
1061
- urls = params .GoerliBootnodes
1062
1051
}
1063
1052
}
1064
1053
cfg .BootstrapNodes = mustParseBootnodes (urls )
@@ -1484,8 +1473,6 @@ func SetDataDir(ctx *cli.Context, cfg *node.Config) {
1484
1473
cfg .DataDir = ctx .String (DataDirFlag .Name )
1485
1474
case ctx .Bool (DeveloperFlag .Name ):
1486
1475
cfg .DataDir = "" // unless explicitly requested, use memory databases
1487
- case ctx .Bool (GoerliFlag .Name ) && cfg .DataDir == node .DefaultDataDir ():
1488
- cfg .DataDir = filepath .Join (node .DefaultDataDir (), "goerli" )
1489
1476
case ctx .Bool (SepoliaFlag .Name ) && cfg .DataDir == node .DefaultDataDir ():
1490
1477
cfg .DataDir = filepath .Join (node .DefaultDataDir (), "sepolia" )
1491
1478
case ctx .Bool (HoleskyFlag .Name ) && cfg .DataDir == node .DefaultDataDir ():
@@ -1657,7 +1644,7 @@ func CheckExclusive(ctx *cli.Context, args ...interface{}) {
1657
1644
// SetEthConfig applies eth-related command line flags to the config.
1658
1645
func SetEthConfig (ctx * cli.Context , stack * node.Node , cfg * ethconfig.Config ) {
1659
1646
// Avoid conflicting network flags
1660
- CheckExclusive (ctx , MainnetFlag , DeveloperFlag , GoerliFlag , SepoliaFlag , HoleskyFlag )
1647
+ CheckExclusive (ctx , MainnetFlag , DeveloperFlag , SepoliaFlag , HoleskyFlag )
1661
1648
CheckExclusive (ctx , DeveloperFlag , ExternalSignerFlag ) // Can't use both ephemeral unlocked and external signer
1662
1649
1663
1650
// Set configurations from CLI flags
@@ -1827,12 +1814,6 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
1827
1814
}
1828
1815
cfg .Genesis = core .DefaultSepoliaGenesisBlock ()
1829
1816
SetDNSDiscoveryDefaults (cfg , params .SepoliaGenesisHash )
1830
- case ctx .Bool (GoerliFlag .Name ):
1831
- if ! ctx .IsSet (NetworkIdFlag .Name ) {
1832
- cfg .NetworkId = 5
1833
- }
1834
- cfg .Genesis = core .DefaultGoerliGenesisBlock ()
1835
- SetDNSDiscoveryDefaults (cfg , params .GoerliGenesisHash )
1836
1817
case ctx .Bool (DeveloperFlag .Name ):
1837
1818
if ! ctx .IsSet (NetworkIdFlag .Name ) {
1838
1819
cfg .NetworkId = 1337
@@ -2154,8 +2135,6 @@ func MakeGenesis(ctx *cli.Context) *core.Genesis {
2154
2135
genesis = core .DefaultHoleskyGenesisBlock ()
2155
2136
case ctx .Bool (SepoliaFlag .Name ):
2156
2137
genesis = core .DefaultSepoliaGenesisBlock ()
2157
- case ctx .Bool (GoerliFlag .Name ):
2158
- genesis = core .DefaultGoerliGenesisBlock ()
2159
2138
case ctx .Bool (DeveloperFlag .Name ):
2160
2139
Fatalf ("Developer chains are ephemeral" )
2161
2140
}
0 commit comments