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
f1ec226d
Commit
f1ec226d
authored
Feb 08, 2016
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth/downloader: raise pending state limit that prevented concurrency
parent
856b9e9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
downloader.go
eth/downloader/downloader.go
+0
-1
queue.go
eth/downloader/queue.go
+3
-2
No files found.
eth/downloader/downloader.go
View file @
f1ec226d
...
...
@@ -59,7 +59,6 @@ var (
maxQueuedHashes
=
256
*
1024
// [eth/61] Maximum number of hashes to queue for import (DOS protection)
maxQueuedHeaders
=
256
*
1024
// [eth/62] Maximum number of headers to queue for import (DOS protection)
maxQueuedStates
=
256
*
1024
// [eth/63] Maximum number of state requests to queue (DOS protection)
maxResultsProcess
=
256
// Number of download results to import at once into the chain
fsHeaderCheckFrequency
=
100
// Verification frequency of the downloaded headers during fast sync
...
...
eth/downloader/queue.go
View file @
f1ec226d
...
...
@@ -39,7 +39,8 @@ import (
)
var
(
blockCacheLimit
=
1024
// Maximum number of blocks to cache before throttling the download
blockCacheLimit
=
1024
// Maximum number of blocks to cache before throttling the download
maxInFlightStates
=
4096
// Maximum number of state downloads to allow concurrently
)
var
(
...
...
@@ -464,7 +465,7 @@ func (q *queue) ReserveNodeData(p *peer, count int) *fetchRequest {
q
.
lock
.
Lock
()
defer
q
.
lock
.
Unlock
()
return
q
.
reserveHashes
(
p
,
count
,
q
.
stateTaskQueue
,
generator
,
q
.
statePendPool
,
count
)
return
q
.
reserveHashes
(
p
,
count
,
q
.
stateTaskQueue
,
generator
,
q
.
statePendPool
,
maxInFlightStates
)
}
// reserveHashes reserves a set of hashes for the given peer, skipping previously
...
...
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