mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-12 14:00:05 +00:00
Re-enable skeleton assembly mode (#661)
This commit is contained in:
parent
bcac51697b
commit
d6c89da694
@ -963,10 +963,10 @@ func (d *Downloader) fetchHeaders(p *peerConnection, from uint64, pivot uint64)
|
|||||||
defer p.log.Debug("Header download terminated")
|
defer p.log.Debug("Header download terminated")
|
||||||
|
|
||||||
// Create a timeout timer, and the associated header fetcher
|
// Create a timeout timer, and the associated header fetcher
|
||||||
skeleton := d.mode != StagedSync // Skeleton assembly phase or finishing up
|
skeleton := true // Skeleton assembly phase or finishing up
|
||||||
request := time.Now() // time of the last skeleton fetch request
|
request := time.Now() // time of the last skeleton fetch request
|
||||||
timeout := time.NewTimer(0) // timer to dump a non-responsive active peer
|
timeout := time.NewTimer(0) // timer to dump a non-responsive active peer
|
||||||
<-timeout.C // timeout channel should be initially empty
|
<-timeout.C // timeout channel should be initially empty
|
||||||
defer timeout.Stop()
|
defer timeout.Stop()
|
||||||
|
|
||||||
var ttl time.Duration
|
var ttl time.Duration
|
||||||
|
Loading…
Reference in New Issue
Block a user