Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
78ab411a
Unverified
Commit
78ab411a
authored
Jul 23, 2019
by
Péter Szilágyi
Committed by
GitHub
Jul 23, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #19875 from karalabe/dev-4gb-cache
cmd/geth: skip 4GB memory bump for devnet
parents
f08eb048
4ac941a9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
main.go
cmd/geth/main.go
+1
-1
No files found.
cmd/geth/main.go
View file @
78ab411a
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment