mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
core: remove check in BlockValidator
This commit is contained in:
parent
93be9e409e
commit
9d719fc88c
1 changed files with 0 additions and 5 deletions
|
|
@ -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())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue