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
b91766fe
Commit
b91766fe
authored
6 years ago
by
mr_franklin
Committed by
Péter Szilágyi
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth: fix comment typo (#18114)
* consensus/clique: fix comment typo * eth,eth/downloader: fix comment typo
parent
a6942b9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
queue.go
eth/downloader/queue.go
+1
-1
handler.go
eth/handler.go
+1
-1
No files found.
eth/downloader/queue.go
View file @
b91766fe
...
...
@@ -325,7 +325,7 @@ func (q *queue) Schedule(headers []*types.Header, from uint64) []*types.Header {
}
// Make sure no duplicate requests are executed
if
_
,
ok
:=
q
.
blockTaskPool
[
hash
];
ok
{
log
.
Warn
(
"Header
already scheduled for block fetch"
,
"number"
,
header
.
Number
,
"hash"
,
hash
)
log
.
Warn
(
"Header already scheduled for block fetch"
,
"number"
,
header
.
Number
,
"hash"
,
hash
)
continue
}
if
_
,
ok
:=
q
.
receiptTaskPool
[
hash
];
ok
{
...
...
This diff is collapsed.
Click to expand it.
eth/handler.go
View file @
b91766fe
...
...
@@ -658,7 +658,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
p
.
SetHead
(
trueHead
,
trueTD
)
// Schedule a sync if above ours. Note, this will not fire a sync for a gap of
// a singe block (as the true TD is below the propagated block), however this
// a sing
l
e block (as the true TD is below the propagated block), however this
// scenario should easily be covered by the fetcher.
currentBlock
:=
pm
.
blockchain
.
CurrentBlock
()
if
trueTD
.
Cmp
(
pm
.
blockchain
.
GetTd
(
currentBlock
.
Hash
(),
currentBlock
.
NumberU64
()))
>
0
{
...
...
This diff is collapsed.
Click to expand it.
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