Skip to content

Commit b91766f

Browse files
mrFranklinkaralabe
authored andcommitted
eth: fix comment typo (#18114)
* consensus/clique: fix comment typo * eth,eth/downloader: fix comment typo
1 parent a6942b9 commit b91766f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎eth/downloader/queue.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ func (q *queue) Schedule(headers []*types.Header, from uint64) []*types.Header {
325325
}
326326
// Make sure no duplicate requests are executed
327327
if _, ok := q.blockTaskPool[hash]; ok {
328-
log.Warn("Header already scheduled for block fetch", "number", header.Number, "hash", hash)
328+
log.Warn("Header already scheduled for block fetch", "number", header.Number, "hash", hash)
329329
continue
330330
}
331331
if _, ok := q.receiptTaskPool[hash]; ok {

‎eth/handler.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
658658
p.SetHead(trueHead, trueTD)
659659

660660
// Schedule a sync if above ours. Note, this will not fire a sync for a gap of
661-
// a singe block (as the true TD is below the propagated block), however this
661+
// a single block (as the true TD is below the propagated block), however this
662662
// scenario should easily be covered by the fetcher.
663663
currentBlock := pm.blockchain.CurrentBlock()
664664
if trueTD.Cmp(pm.blockchain.GetTd(currentBlock.Hash(), currentBlock.NumberU64())) > 0 {

0 commit comments

Comments
 (0)