aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/downloader.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-09-06 20:02:44 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-09-06 20:02:44 +0800
commitf30179d62e239521290690ac0688da8648ddebc6 (patch)
tree0da8782be0371d766d1b7814aab96a5d860c2fc5 /eth/downloader/downloader.go
parentc4d21bc8e548d909d5b2940cb00d3d068f5697ec (diff)
downloadgo-tangerine-f30179d62e239521290690ac0688da8648ddebc6.tar
go-tangerine-f30179d62e239521290690ac0688da8648ddebc6.tar.gz
go-tangerine-f30179d62e239521290690ac0688da8648ddebc6.tar.bz2
go-tangerine-f30179d62e239521290690ac0688da8648ddebc6.tar.lz
go-tangerine-f30179d62e239521290690ac0688da8648ddebc6.tar.xz
go-tangerine-f30179d62e239521290690ac0688da8648ddebc6.tar.zst
go-tangerine-f30179d62e239521290690ac0688da8648ddebc6.zip
eth: disable fast sync after pivot is committed
Diffstat (limited to 'eth/downloader/downloader.go')
-rw-r--r--eth/downloader/downloader.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go
index 6ac58140a..f2dbf0f88 100644
--- a/eth/downloader/downloader.go
+++ b/eth/downloader/downloader.go
@@ -1170,7 +1170,7 @@ func (d *Downloader) processHeaders(origin uint64, td *big.Int) error {
// If we're already past the pivot point, this could be an attack, thread carefully
if rollback[len(rollback)-1].Number.Uint64() > pivot {
- // If we didn't ever fail, lock in te pivot header (must! not! change!)
+ // If we didn't ever fail, lock in the pivot header (must! not! change!)
if atomic.LoadUint32(&d.fsPivotFails) == 0 {
for _, header := range rollback {
if header.Number.Uint64() == pivot {
@@ -1392,7 +1392,6 @@ func (d *Downloader) processFastSyncContent(latest *types.Header) error {
stateSync.Cancel()
if err := d.commitPivotBlock(P); err != nil {
return err
-
}
}
if err := d.importBlockResults(afterP); err != nil {