Re-enable skeleton assembly mode (#661)

This commit is contained in:
ledgerwatch 2020-06-13 15:13:30 +01:00 committed by GitHub
parent bcac51697b
commit d6c89da694
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -963,10 +963,10 @@ func (d *Downloader) fetchHeaders(p *peerConnection, from uint64, pivot uint64)
defer p.log.Debug("Header download terminated")
// Create a timeout timer, and the associated header fetcher
skeleton := d.mode != StagedSync // Skeleton assembly phase or finishing up
request := time.Now() // time of the last skeleton fetch request
timeout := time.NewTimer(0) // timer to dump a non-responsive active peer
<-timeout.C // timeout channel should be initially empty
skeleton := true // Skeleton assembly phase or finishing up
request := time.Now() // time of the last skeleton fetch request
timeout := time.NewTimer(0) // timer to dump a non-responsive active peer
<-timeout.C // timeout channel should be initially empty
defer timeout.Stop()
var ttl time.Duration