Skip to content

Commit

Permalink
for p2p issue
Browse files Browse the repository at this point in the history
  • Loading branch information
blxdyx committed May 11, 2024
1 parent 6a32aa2 commit 0380fae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions turbo/stages/bodydownload/body_algos.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,11 @@ func (bd *BodyDownload) RequestMoreBodies(tx kv.RwTx, blockReader services.FullB
} else {
// Perhaps we already have this block
block, _, _ := bd.br.BlockWithSenders(context.Background(), tx, hash, blockNum)
if block != nil {
//bd.addBodyToCache(blockNum, block.RawBody())
withoutSidecar := block.Header().BlobGasUsed == nil || *block.Header().BlobGasUsed == 0
if block != nil && withoutSidecar {
bd.addBodyToCache(blockNum, block.RawBody())
dataflow.BlockBodyDownloadStates.AddChange(blockNum, dataflow.BlockBodyInDb)
//request = false
request = false
}
}
}
Expand Down

0 comments on commit 0380fae

Please sign in to comment.