forked from cerc-io/plugeth
eth/downloader: fix some typos (#26396)
This commit is contained in:
parent
db82ea2ee3
commit
9d38466437
@ -481,7 +481,7 @@ func (d *Downloader) syncWithPeer(p *peerConnection, hash common.Hash, td, ttd *
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// In beacon mode, user 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
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// If no headers have bene delivered, or all of them have been delayed,
|
// If no headers have been 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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user