diff options
author | Péter Szilágyi <peterke@gmail.com> | 2019-07-23 17:54:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-23 17:54:20 +0800 |
commit | 78ab411aacfb11e00e1c7466aaa20843016429f3 (patch) | |
tree | f93c8fb2efeccd57119b8637155e065d771b8932 | |
parent | f08eb0489657f19da56d1ffb2ff9296bdfc61a6c (diff) | |
parent | 4ac941a9fc13a530d39691dfcd4326056b4cc6bc (diff) | |
download | go-tangerine-78ab411aacfb11e00e1c7466aaa20843016429f3.tar go-tangerine-78ab411aacfb11e00e1c7466aaa20843016429f3.tar.gz go-tangerine-78ab411aacfb11e00e1c7466aaa20843016429f3.tar.bz2 go-tangerine-78ab411aacfb11e00e1c7466aaa20843016429f3.tar.lz go-tangerine-78ab411aacfb11e00e1c7466aaa20843016429f3.tar.xz go-tangerine-78ab411aacfb11e00e1c7466aaa20843016429f3.tar.zst go-tangerine-78ab411aacfb11e00e1c7466aaa20843016429f3.zip |
Merge pull request #19875 from karalabe/dev-4gb-cache
cmd/geth: skip 4GB memory bump for devnet
-rw-r--r-- | cmd/geth/main.go | 2 |
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)) |