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
9d384664
Unverified
Commit
9d384664
authored
Jan 03, 2023
by
Ha DANG
Committed by
GitHub
Jan 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth/downloader: fix some typos (#26396)
parent
db82ea2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
downloader.go
eth/downloader/downloader.go
+2
-2
No files found.
eth/downloader/downloader.go
View file @
9d384664
...
@@ -481,7 +481,7 @@ func (d *Downloader) syncWithPeer(p *peerConnection, hash common.Hash, td, ttd *
...
@@ -481,7 +481,7 @@ func (d *Downloader) syncWithPeer(p *peerConnection, hash common.Hash, td, ttd *
return
err
return
err
}
}
}
else
{
}
else
{
// In beacon mode, use
r
the skeleton chain to retrieve the headers from
// In beacon mode, use the skeleton chain to retrieve the headers from
latest
,
_
,
err
=
d
.
skeleton
.
Bounds
()
latest
,
_
,
err
=
d
.
skeleton
.
Bounds
()
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
...
@@ -1174,7 +1174,7 @@ func (d *Downloader) fetchHeaders(p *peerConnection, from uint64, head uint64) e
...
@@ -1174,7 +1174,7 @@ func (d *Downloader) fetchHeaders(p *peerConnection, from uint64, head uint64) e
}
}
}
}
}
}
// If no headers have be
ne
delivered, or all of them have been delayed,
// If no headers have be
en
delivered, or all of them have been delayed,
// sleep a bit and retry. Take care with headers already consumed during
// sleep a bit and retry. Take care with headers already consumed during
// skeleton filling
// skeleton filling
if
len
(
headers
)
==
0
&&
!
progressed
{
if
len
(
headers
)
==
0
&&
!
progressed
{
...
...
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