Skip to content

Commit 3f2e96c

Browse files
authored
cmd/geth: add missing sepolia testnet flag checks (#24147)
1 parent 980b768 commit 3f2e96c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cmd/geth/main.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ func prepare(ctx *cli.Context) {
274274
case ctx.GlobalIsSet(utils.RopstenFlag.Name):
275275
log.Info("Starting Geth on Ropsten testnet...")
276276

277+
case ctx.GlobalIsSet(utils.SepoliaFlag.Name):
278+
log.Info("Starting Geth on Sepolia testnet...")
279+
277280
case ctx.GlobalIsSet(utils.RinkebyFlag.Name):
278281
log.Info("Starting Geth on Rinkeby testnet...")
279282

@@ -289,7 +292,11 @@ func prepare(ctx *cli.Context) {
289292
// If we're a full node on mainnet without --cache specified, bump default cache allowance
290293
if ctx.GlobalString(utils.SyncModeFlag.Name) != "light" && !ctx.GlobalIsSet(utils.CacheFlag.Name) && !ctx.GlobalIsSet(utils.NetworkIdFlag.Name) {
291294
// Make sure we're not on any supported preconfigured testnet either
292-
if !ctx.GlobalIsSet(utils.RopstenFlag.Name) && !ctx.GlobalIsSet(utils.RinkebyFlag.Name) && !ctx.GlobalIsSet(utils.GoerliFlag.Name) && !ctx.GlobalIsSet(utils.DeveloperFlag.Name) {
295+
if !ctx.GlobalIsSet(utils.RopstenFlag.Name) &&
296+
!ctx.GlobalIsSet(utils.SepoliaFlag.Name) &&
297+
!ctx.GlobalIsSet(utils.RinkebyFlag.Name) &&
298+
!ctx.GlobalIsSet(utils.GoerliFlag.Name) &&
299+
!ctx.GlobalIsSet(utils.DeveloperFlag.Name) {
293300
// Nope, we're really on mainnet. Bump that cache up!
294301
log.Info("Bumping default cache on mainnet", "provided", ctx.GlobalInt(utils.CacheFlag.Name), "updated", 4096)
295302
ctx.GlobalSet(utils.CacheFlag.Name, strconv.Itoa(4096))

0 commit comments

Comments
 (0)