Skip to content

Commit 78ab411

Browse files
authored
Merge pull request #19875 from karalabe/dev-4gb-cache
cmd/geth: skip 4GB memory bump for devnet
2 parents f08eb04 + 4ac941a commit 78ab411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/geth/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func init() {
245245
// If we're a full node on mainnet without --cache specified, bump default cache allowance
246246
if ctx.GlobalString(utils.SyncModeFlag.Name) != "light" && !ctx.GlobalIsSet(utils.CacheFlag.Name) && !ctx.GlobalIsSet(utils.NetworkIdFlag.Name) {
247247
// Make sure we're not on any supported preconfigured testnet either
248-
if !ctx.GlobalIsSet(utils.TestnetFlag.Name) && !ctx.GlobalIsSet(utils.RinkebyFlag.Name) && !ctx.GlobalIsSet(utils.GoerliFlag.Name) {
248+
if !ctx.GlobalIsSet(utils.TestnetFlag.Name) && !ctx.GlobalIsSet(utils.RinkebyFlag.Name) && !ctx.GlobalIsSet(utils.GoerliFlag.Name) && !ctx.GlobalIsSet(utils.DeveloperFlag.Name) {
249249
// Nope, we're really on mainnet. Bump that cache up!
250250
log.Info("Bumping default cache on mainnet", "provided", ctx.GlobalInt(utils.CacheFlag.Name), "updated", 4096)
251251
ctx.GlobalSet(utils.CacheFlag.Name, strconv.Itoa(4096))

0 commit comments

Comments
 (0)