Expand description
Collection of consensus validation methods. Collection of methods for block validation.
Functions§
- Validates that the EIP-4844 header fields exist and conform to the spec. This ensures that:
- Validates that the EIP-4844 header fields are correct with respect to the parent block. This ensures that the
blob_gas_used
andexcess_blob_gas
fields exist in the child header, and that theexcess_blob_gas
field matches the expectedexcess_blob_gas
calculated from the parent header fields. - Validates the base fee against the parent and EIP-1559 rules.
- Validates against the parent hash and number.
- Validates the timestamp against the parent to make sure it is in the past.
- Validate a block without regard for state:
- Ensures the block response data matches the header.
- Validate that blob gas is present in the block if Cancun is active.
- Ensure the EIP-1559 base fee is set if the London hardfork is active.
- Validates the header’s extra data according to the beacon consensus rules.
- Gas used needs to be less than gas limit. Gas used is going to be checked after execution.
- Validate that withdrawals are present in Shanghai