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
9c42a41e
Commit
9c42a41e
authored
Jan 02, 2018
by
Péter Szilágyi
Committed by
Felix Lange
Jan 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth/downloader: avoid hidden reference to finished statesync request (#15545)
parent
2fe07c20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
statesync.go
eth/downloader/statesync.go
+4
-1
No files found.
eth/downloader/statesync.go
View file @
9c42a41e
...
@@ -132,7 +132,10 @@ func (d *Downloader) runStateSync(s *stateSync) *stateSync {
...
@@ -132,7 +132,10 @@ func (d *Downloader) runStateSync(s *stateSync) *stateSync {
// Send the next finished request to the current sync:
// Send the next finished request to the current sync:
case
deliverReqCh
<-
deliverReq
:
case
deliverReqCh
<-
deliverReq
:
finished
=
append
(
finished
[
:
0
],
finished
[
1
:
]
...
)
// Shift out the first request, but also set the emptied slot to nil for GC
copy
(
finished
,
finished
[
1
:
])
finished
[
len
(
finished
)
-
1
]
=
nil
finished
=
finished
[
:
len
(
finished
)
-
1
]
// Handle incoming state packs:
// Handle incoming state packs:
case
pack
:=
<-
d
.
stateCh
:
case
pack
:=
<-
d
.
stateCh
:
...
...
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