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
93c00120
Commit
93c00120
authored
Feb 23, 2016
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth/downloader: bump the download queue size to prevent starvation
parent
b57a3f15
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
downloader_test.go
eth/downloader/downloader_test.go
+5
-0
queue.go
eth/downloader/queue.go
+1
-1
No files found.
eth/downloader/downloader_test.go
View file @
93c00120
...
...
@@ -43,6 +43,11 @@ var (
genesis
=
core
.
GenesisBlockForTesting
(
testdb
,
testAddress
,
big
.
NewInt
(
1000000000
))
)
// Reduce the block cache limit, otherwise the tests will be very heavy.
func
init
()
{
blockCacheLimit
=
1024
}
// makeChain creates a chain of n blocks starting at and including parent.
// the returned hash chain is ordered head->parent. In addition, every 3rd block
// contains a transaction and every 5th an uncle to allow testing correct block
...
...
eth/downloader/queue.go
View file @
93c00120
...
...
@@ -39,7 +39,7 @@ import (
)
var
(
blockCacheLimit
=
1024
// Maximum number of blocks to cache before throttling the download
blockCacheLimit
=
8192
// Maximum number of blocks to cache before throttling the download
maxInFlightStates
=
4096
// Maximum number of state downloads to allow concurrently
)
...
...
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