Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
blxdyx committed May 11, 2024
1 parent f9a6183 commit cf14007
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions turbo/stages/bodydownload/body_algos.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,12 @@ func (bd *BodyDownload) checkPrefetchedBlock(hash libcommon.Hash, tx kv.RwTx, bl
return false
}

var want uint64
if header.BlobGasUsed != nil {
want = *header.BlobGasUsed / params.BlobTxBlobGasPerBlob
}

if want != uint64(len(body.Sidecars)) {
bd.logger.Debug("Prefetched Block Error", "Number", header.Number.Uint64(), "Hash", header.Hash(), "want", want, "actual", len(body.Sidecars))
return false
want := *header.BlobGasUsed / params.BlobTxBlobGasPerBlob
if want != uint64(len(body.Sidecars)) {
bd.logger.Debug("Prefetched Block Error", "Number", header.Number.Uint64(), "Hash", header.Hash(), "want", want, "actual", len(body.Sidecars))
return false
}
}

// Block is prefetched, no need to request
Expand Down

0 comments on commit cf14007

Please sign in to comment.