mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-18 08:38:46 +00:00
fix undownloaded body (#7966)
This commit is contained in:
parent
d014da4dc0
commit
c08aa3ac03
@ -101,6 +101,7 @@ func (e *EngineBlockDownloader) downloadAndLoadBodiesSyncronously(tx kv.RwTx, fr
|
||||
|
||||
toProcess := e.bd.NextProcessingCount()
|
||||
|
||||
write := true
|
||||
for i := uint64(0); i < toProcess; i++ {
|
||||
select {
|
||||
case <-logEvery.C:
|
||||
@ -108,9 +109,12 @@ func (e *EngineBlockDownloader) downloadAndLoadBodiesSyncronously(tx kv.RwTx, fr
|
||||
default:
|
||||
}
|
||||
nextBlock := requestedLow + i
|
||||
rawBody := e.bd.GetBodyFromCache(nextBlock, true)
|
||||
rawBody := e.bd.GetBodyFromCache(nextBlock, write)
|
||||
if rawBody == nil {
|
||||
e.bd.NotDelivered(nextBlock)
|
||||
write = false
|
||||
}
|
||||
if !write {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user