Skip to content

Commit b8908e3

Browse files
rizkyikiw42fjl
authored andcommitted
consensus/misc: fix blob gas error message formatting (ethereum#33275)
Dereference the `header.BlobGasUsed` pointer when formatting the error message in `VerifyEIP4844Header`.
1 parent ec52baa commit b8908e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

consensus/misc/eip4844/eip4844.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func VerifyEIP4844Header(config *params.ChainConfig, parent, header *types.Heade
115115
return fmt.Errorf("blob gas used %d exceeds maximum allowance %d", *header.BlobGasUsed, bcfg.maxBlobGas())
116116
}
117117
if *header.BlobGasUsed%params.BlobTxBlobGasPerBlob != 0 {
118-
return fmt.Errorf("blob gas used %d not a multiple of blob gas per blob %d", header.BlobGasUsed, params.BlobTxBlobGasPerBlob)
118+
return fmt.Errorf("blob gas used %d not a multiple of blob gas per blob %d", *header.BlobGasUsed, params.BlobTxBlobGasPerBlob)
119119
}
120120

121121
// Verify the excessBlobGas is correct based on the parent header

0 commit comments

Comments
 (0)