Skip to content

Commit 68ad6ac

Browse files
lightclientfjl
authored andcommitted
cmd: revert further changes from #31630
1 parent 1b8ee6d commit 68ad6ac

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cmd/geth/consolecmd_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ const (
3939
// child g gets a temporary data directory.
4040
func runMinimalGeth(t *testing.T, args ...string) *testgeth {
4141
// --holesky to make the 'writing genesis to disk' faster (no accounts)
42+
// --networkid=1337 to avoid cache bump
4243
// --syncmode=full to avoid allocating fast sync bloom
43-
allArgs := []string{"--holesky", "--authrpc.port", "0", "--syncmode=full", "--port", "0",
44+
allArgs := []string{"--holesky", "--networkid", "1337", "--authrpc.port", "0", "--syncmode=full", "--port", "0",
4445
"--nat", "none", "--nodiscover", "--maxpeers", "0", "--cache", "64",
4546
"--datadir.minfreedisk", "0"}
4647
return runGeth(t, append(allArgs, args...)...)

cmd/utils/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@ func setRequiredBlocks(ctx *cli.Context, cfg *ethconfig.Config) {
16151615

16161616
// SetEthConfig applies eth-related command line flags to the config.
16171617
func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
1618-
// Avoid conflicting network flags, don't allow network id override on preset networks
1618+
// Avoid conflicting network flags
16191619
flags.CheckExclusive(ctx, MainnetFlag, DeveloperFlag, SepoliaFlag, HoleskyFlag, HoodiFlag, OverrideGenesisFlag)
16201620
flags.CheckExclusive(ctx, DeveloperFlag, ExternalSignerFlag) // Can't use both ephemeral unlocked and external signer
16211621

0 commit comments

Comments
 (0)