aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2019-07-23 17:18:22 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-07-23 17:18:22 +0800
commit4ac941a9fc13a530d39691dfcd4326056b4cc6bc (patch)
tree9499ab435b37051d604f0658a322e71a22e17d4a
parentb80c840af33aae1ff99ce9879fecc6161a0c1620 (diff)
downloadgo-tangerine-4ac941a9fc13a530d39691dfcd4326056b4cc6bc.tar
go-tangerine-4ac941a9fc13a530d39691dfcd4326056b4cc6bc.tar.gz
go-tangerine-4ac941a9fc13a530d39691dfcd4326056b4cc6bc.tar.bz2
go-tangerine-4ac941a9fc13a530d39691dfcd4326056b4cc6bc.tar.lz
go-tangerine-4ac941a9fc13a530d39691dfcd4326056b4cc6bc.tar.xz
go-tangerine-4ac941a9fc13a530d39691dfcd4326056b4cc6bc.tar.zst
go-tangerine-4ac941a9fc13a530d39691dfcd4326056b4cc6bc.zip
cmd/geth: skip 4GB memory bump for devnet
-rw-r--r--cmd/geth/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index 7d30c9243..5ae358d52 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -245,7 +245,7 @@ func init() {
// If we're a full node on mainnet without --cache specified, bump default cache allowance
if ctx.GlobalString(utils.SyncModeFlag.Name) != "light" && !ctx.GlobalIsSet(utils.CacheFlag.Name) && !ctx.GlobalIsSet(utils.NetworkIdFlag.Name) {
// Make sure we're not on any supported preconfigured testnet either
- if !ctx.GlobalIsSet(utils.TestnetFlag.Name) && !ctx.GlobalIsSet(utils.RinkebyFlag.Name) && !ctx.GlobalIsSet(utils.GoerliFlag.Name) {
+ if !ctx.GlobalIsSet(utils.TestnetFlag.Name) && !ctx.GlobalIsSet(utils.RinkebyFlag.Name) && !ctx.GlobalIsSet(utils.GoerliFlag.Name) && !ctx.GlobalIsSet(utils.DeveloperFlag.Name) {
// Nope, we're really on mainnet. Bump that cache up!
log.Info("Bumping default cache on mainnet", "provided", ctx.GlobalInt(utils.CacheFlag.Name), "updated", 4096)
ctx.GlobalSet(utils.CacheFlag.Name, strconv.Itoa(4096))