Skip to content

Commit 912b6dd

Browse files
authored
cmd/geth: drop support for goerli network (#653)
1 parent 91708c9 commit 912b6dd

File tree

27 files changed

+20
-179
lines changed

27 files changed

+20
-179
lines changed

Jenkinsfile

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,6 @@ pipeline {
4040
unsuccessful { githubNotify context: 'Mordor Regression', description: "${GITHUB_NOTIFY_DESCRIPTION}", status: 'FAILURE', account: "${GITHUB_OWNER_NAME}", repo: "${GITHUB_REPO_NAME}", credentialsId: 'meowsbits-github-jenkins', sha: "${GIT_COMMIT}" }
4141
}
4242
}
43-
stage('Goerli') {
44-
agent { label "aws-slave-m5-xlarge" }
45-
steps {
46-
sh "curl -L -O https://go.dev/dl/go1.22.4.linux-amd64.tar.gz"
47-
sh "sudo rm -rf /usr/bin/go && sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.4.linux-amd64.tar.gz"
48-
sh "export GOROOT=/usr/local/go"
49-
sh "/usr/local/go/bin/go version"
50-
sh "mkdir -p ./build/bin && /usr/local/go/bin/go build -o ./build/bin/geth ./cmd/geth && sudo chmod +x ./build/bin/geth"
51-
sh "sudo cp ./build/bin/geth /usr/bin/ && which geth"
52-
sh "geth version"
53-
sh "rm -rf ${GETH_DATADIR}-goerli"
54-
sh "shasum -a 256 -c ./tests/regression/shasums/goerli.0-2000000.rlp.gz.sha256"
55-
sh "geth --goerli --cache=2048 --nocompaction --nousb --txlookuplimit=1 --datadir=${GETH_DATADIR}-goerli import ${GETH_EXPORTS}/goerli.0-2000000.rlp.gz"
56-
}
57-
post {
58-
always { sh "rm -rf ${GETH_DATADIR}-goerli" }
59-
success { githubNotify context: 'Goerli Regression', description: "${GITHUB_NOTIFY_DESCRIPTION}", status: 'SUCCESS', account: "${GITHUB_OWNER_NAME}", repo: "${GITHUB_REPO_NAME}", credentialsId: 'meowsbits-github-jenkins', sha: "${GIT_COMMIT}" }
60-
unsuccessful { githubNotify context: 'Goerli Regression', description: "${GITHUB_NOTIFY_DESCRIPTION}", status: 'FAILURE', account: "${GITHUB_OWNER_NAME}", repo: "${GITHUB_REPO_NAME}", credentialsId: 'meowsbits-github-jenkins', sha: "${GIT_COMMIT}" }
61-
}
62-
}
6343
// Commented now because these take a looong time.
6444
// One way of approaching a solution is to break each chain into a "stepladder" of imports, eg. 0-1150000, 1150000-1920000, 1920000-2500000, etc...
6545
// This would allow further parallelization at the cost of duplicated base chaindata stores.

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ Networks supported by the respective go-ethereum packaged `geth` program.
2727
| | :zap: | Morden (Geth+Parity ETH PoW Testnet) | | |
2828
| | :zap: | Ropsten (Geth+Parity ETH PoW Testnet) | :heavy_check_mark: | :heavy_check_mark: |
2929
| | :handshake: | Rinkeby (Geth-only ETH PoA Testnet) | :heavy_check_mark: | :heavy_check_mark: |
30-
| | :handshake: | Goerli (Geth+Parity ETH PoA Testnet) | :heavy_check_mark: | :heavy_check_mark: |
3130
| | :handshake: | Kovan (Parity-only ETH PoA Testnet) | | |
3231
| | | Tobalaba (EWF Testnet) | | |
3332
| | | Ephemeral development PoA network | :heavy_check_mark: | :heavy_check_mark: |

cmd/clef/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ GLOBAL OPTIONS:
2929
--loglevel value log level to emit to the screen (default: 4)
3030
--keystore value Directory for the keystore (default: "$HOME/.ethereum/keystore")
3131
--configdir value Directory for Clef configuration (default: "$HOME/.clef")
32-
--chainid value Chain id to use for signing (1=foundation, 5=Goerli, 61=classic, 63=Mordor) (default: 1)
32+
--chainid value Chain id to use for signing (1=foundation, 61=classic, 63=Mordor) (default: 1)
3333
--lightkdf Reduce key-derivation RAM & CPU usage at some expense of KDF strength
3434
--nousb Disables monitoring for and managing USB hardware wallets
3535
--pcscdpath value Path to the smartcard daemon (pcscd) socket file (default: "/run/pcscd/pcscd.comm")

cmd/clef/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ var (
101101
chainIdFlag = &cli.Int64Flag{
102102
Name: "chainid",
103103
Value: params.MainnetChainConfig.ChainID.Int64(),
104-
Usage: "Chain id to use for signing (1=foundation, 61=classic, 5=Goerli, 63=Mordor, 133519467574834=Yolo)",
104+
Usage: "Chain id to use for signing (1=foundation, 61=classic, 63=Mordor, 133519467574834=Yolo)",
105105
}
106106
rpcPortFlag = &cli.IntFlag{
107107
Name: "http.port",

cmd/devp2p/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ set to standard output. The following filters are supported:
4444
- `-limit <N>` limits the output set to N entries, taking the top N nodes by score
4545
- `-ip <CIDR>` filters nodes by IP subnet
4646
- `-min-age <duration>` filters nodes by 'first seen' time
47-
- `-eth-network <classic/mordor/mainnet/goerli/sepolia/holesky>` filters nodes by "eth" ENR entry
47+
- `-eth-network <classic/mordor/mainnet/sepolia/holesky>` filters nodes by "eth" ENR entry
4848
- `-les-server` filters nodes by LES server support
4949
- `-snap` filters nodes by snap protocol support
5050

cmd/devp2p/nodesetcmd.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,6 @@ func ethFilter(args []string) (nodeFilter, error) {
231231
case "mainnet":
232232
gb := core.GenesisToBlock(params.DefaultGenesisBlock(), nil)
233233
filter = forkid.NewStaticFilter(params.MainnetChainConfig, gb)
234-
case "goerli":
235-
gb := core.GenesisToBlock(params.DefaultGoerliGenesisBlock(), nil)
236-
filter = forkid.NewStaticFilter(params.GoerliChainConfig, gb)
237234
case "sepolia":
238235
gb := core.GenesisToBlock(params.DefaultSepoliaGenesisBlock(), nil)
239236
filter = forkid.NewStaticFilter(params.SepoliaChainConfig, gb)

cmd/echainspec/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ var defaultChainspecValues = map[string]ctypes.Configurator{
4444
"mordor": params.DefaultMordorGenesisBlock(),
4545

4646
"foundation": params.DefaultGenesisBlock(),
47-
"goerli": params.DefaultGoerliGenesisBlock(),
4847
"sepolia": params.DefaultSepoliaGenesisBlock(),
4948

5049
"mintme": params.DefaultMintMeGenesisBlock(),

cmd/geth/chaincmd.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,6 @@ func importHistory(ctx *cli.Context) error {
426426
network = "mainnet"
427427
case ctx.Bool(utils.SepoliaFlag.Name):
428428
network = "sepolia"
429-
case ctx.Bool(utils.GoerliFlag.Name):
430-
network = "goerli"
431429
}
432430
} else {
433431
// No network flag set, try to determine network based on files

cmd/geth/consolecmd_cg_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ func TestConsoleCmdNetworkIdentities(t *testing.T) {
3535
// All other possible --<chain> values.
3636
{[]string{"--mainnet"}, 1, 1, params.MainnetGenesisHash.Hex()},
3737
{[]string{"--sepolia"}, 11155111, 11155111, params.SepoliaGenesisHash.Hex()},
38-
{[]string{"--goerli"}, 5, 5, params.GoerliGenesisHash.Hex()},
3938
{[]string{"--mordor"}, 7, 63, params.MordorGenesisHash.Hex()},
4039
{[]string{"--mintme"}, 37480, 24734, params.MintMeGenesisHash.Hex()},
4140
{[]string{"--dev"}, 1337, 1337, "0x0"},

cmd/geth/consolecmd_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,17 @@ import (
3030
)
3131

3232
const (
33-
ipcAPIs = "admin:1.0 clique:1.0 debug:1.0 engine:1.0 eth:1.0 miner:1.0 net:1.0 rpc:1.0 trace:1.0 txpool:1.0 web3:1.0"
33+
ipcAPIs = "admin:1.0 debug:1.0 engine:1.0 eth:1.0 ethash:1.0 miner:1.0 net:1.0 rpc:1.0 trace:1.0 txpool:1.0 web3:1.0"
3434
httpAPIs = "eth:1.0 net:1.0 rpc:1.0 web3:1.0"
3535
)
3636

3737
// spawns geth with the given command line args, using a set of flags to minimise
3838
// memory and disk IO. If the args don't set --datadir, the
3939
// child g gets a temporary data directory.
4040
func runMinimalGeth(t *testing.T, args ...string) *testgeth {
41-
// --goerli to make the 'writing genesis to disk' faster (no accounts)
4241
// --networkid=1337 to avoid cache bump
4342
// --syncmode=full to avoid allocating fast sync bloom
44-
allArgs := []string{"--goerli", "--networkid", "1337", "--authrpc.port", "0", "--syncmode=full", "--port", "0",
43+
allArgs := []string{"--mordor", "--networkid", "1337", "--authrpc.port", "0", "--syncmode=full", "--port", "0",
4544
"--nat", "none", "--nodiscover", "--maxpeers", "0", "--cache", "64",
4645
"--datadir.minfreedisk", "0"}
4746
return runGeth(t, append(allArgs, args...)...)
@@ -71,7 +70,7 @@ func TestConsoleWelcome(t *testing.T) {
7170
geth.SetTemplateFunc("gover", runtime.Version)
7271
geth.SetTemplateFunc("gethver", func() string { return params.VersionWithCommit("", "") })
7372
geth.SetTemplateFunc("niltime", func() string {
74-
return time.Unix(1548854791, 0).Format("Mon Jan 02 2006 15:04:05 GMT-0700 (MST)")
73+
return time.Unix(1570141915, 0).Format("Mon Jan 02 2006 15:04:05 GMT-0700 (MST)")
7574
})
7675
geth.SetTemplateFunc("apis", func() string { return ipcAPIs })
7776

@@ -151,7 +150,7 @@ func testAttachWelcome(t *testing.T, geth *testgeth, endpoint, apis string) {
151150
attach.SetTemplateFunc("gethver", func() string { return params.VersionWithCommit("", "") })
152151
attach.SetTemplateFunc("etherbase", func() string { return geth.Etherbase })
153152
attach.SetTemplateFunc("niltime", func() string {
154-
return time.Unix(1548854791, 0).Format("Mon Jan 02 2006 15:04:05 GMT-0700 (MST)")
153+
return time.Unix(1570141915, 0).Format("Mon Jan 02 2006 15:04:05 GMT-0700 (MST)")
155154
})
156155
attach.SetTemplateFunc("ipc", func() bool { return strings.HasPrefix(endpoint, "ipc") })
157156
attach.SetTemplateFunc("datadir", func() string { return geth.Datadir })

0 commit comments

Comments
 (0)