core: remove check in BlockValidator

This commit is contained in:
Felix Lange 2025-07-21 10:16:05 +02:00
parent 93be9e409e
commit 9d719fc88c

View file

@ -86,13 +86,8 @@ func (v *BlockValidator) ValidateBody(block *types.Block) error {
}
// Blob transactions may be present after the Cancun fork.
isOsaka := v.config.IsOsaka(block.Number(), block.Time())
var blobs int
for i, tx := range block.Transactions() {
if isOsaka && len(tx.BlobHashes()) > params.BlobTxMaxBlobs {
return ErrTooManyBlobs
}
// Count the number of blobs to validate against the header's blobGasUsed
blobs += len(tx.BlobHashes())