Skip to content

Commit

Permalink
core: fix missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe committed May 25, 2023
1 parent 64c629b commit 05c970b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/block_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (v *BlockValidator) ValidateBody(parent *types.Header, block *types.Block)
blobs += len(tx.BlobHashes())
}
if blobs > params.BlobTxMaxDataGasPerBlock/params.BlobTxDataGasPerBlob {
fmt.Errorf("exceeded block capacity (permitted %d, included %d)", params.BlobTxMaxDataGasPerBlock/params.BlobTxDataGasPerBlob, blobs)
return fmt.Errorf("exceeded block capacity (permitted %d, included %d)", params.BlobTxMaxDataGasPerBlock/params.BlobTxDataGasPerBlob, blobs)
}
if parent == nil {
if parent = v.bc.GetHeader(block.ParentHash(), block.NumberU64()-1); parent == nil {
Expand Down

0 comments on commit 05c970b

Please sign in to comment.