mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
Fix another case of header download hanging (non-POS) (#8356)
This commit is contained in:
parent
3f590505bd
commit
2521f1a696
@ -521,7 +521,7 @@ func (hd *HeaderDownload) InsertHeader(hf FeedHeaderFunc, terminalTotalDifficult
|
||||
var returnTd *big.Int
|
||||
var lastD *big.Int
|
||||
var lastTime uint64
|
||||
if hd.insertQueue.Len() > 0 && hd.insertQueue[0].blockHeight <= hd.highestInDb+1 {
|
||||
if hd.insertQueue.Len() > 0 {
|
||||
link := hd.insertQueue[0]
|
||||
_, bad := hd.badHeaders[link.hash]
|
||||
if !bad && !link.persisted {
|
||||
|
Loading…
Reference in New Issue
Block a user