mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: validate blob_gas_used in header (#4676)
This commit is contained in:
@ -153,6 +153,8 @@ pub enum ConsensusError {
|
||||
"Blob gas used {blob_gas_used} is not a multiple of blob gas per blob {blob_gas_per_blob}"
|
||||
)]
|
||||
BlobGasUsedNotMultipleOfBlobGasPerBlob { blob_gas_used: u64, blob_gas_per_blob: u64 },
|
||||
#[error("Blob gas used in the header {header_blob_gas_used} does not match the expected blob gas used {expected_blob_gas_used}")]
|
||||
BlobGasUsedDiff { header_blob_gas_used: u64, expected_blob_gas_used: u64 },
|
||||
#[error("Invalid excess blob gas. Expected: {expected}, got: {got}. Parent excess blob gas: {parent_excess_blob_gas}, parent blob gas used: {parent_blob_gas_used}.")]
|
||||
ExcessBlobGasDiff {
|
||||
expected: u64,
|
||||
|
||||
Reference in New Issue
Block a user