mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +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()
|
toProcess := e.bd.NextProcessingCount()
|
||||||
|
|
||||||
|
write := true
|
||||||
for i := uint64(0); i < toProcess; i++ {
|
for i := uint64(0); i < toProcess; i++ {
|
||||||
select {
|
select {
|
||||||
case <-logEvery.C:
|
case <-logEvery.C:
|
||||||
@ -108,9 +109,12 @@ func (e *EngineBlockDownloader) downloadAndLoadBodiesSyncronously(tx kv.RwTx, fr
|
|||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
nextBlock := requestedLow + i
|
nextBlock := requestedLow + i
|
||||||
rawBody := e.bd.GetBodyFromCache(nextBlock, true)
|
rawBody := e.bd.GetBodyFromCache(nextBlock, write)
|
||||||
if rawBody == nil {
|
if rawBody == nil {
|
||||||
e.bd.NotDelivered(nextBlock)
|
e.bd.NotDelivered(nextBlock)
|
||||||
|
write = false
|
||||||
|
}
|
||||||
|
if !write {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user