test_invalid_pre_fork_block_with_blob_fields()¶
Documentation for tests/cancun/eip4844_blobs/test_excess_blob_gas_fork_transition.py::test_invalid_pre_fork_block_with_blob_fields@88e9fb8f.
Generate fixtures for these test cases for Osaka with:
fill -v tests/cancun/eip4844_blobs/test_excess_blob_gas_fork_transition.py::test_invalid_pre_fork_block_with_blob_fields --fork Osaka
Test block rejection when excessBlobGas and/or blobGasUsed fields are
present on a pre-fork block.
Blocks sent by NewPayloadV2 (Shanghai) that contain excessBlobGas and
blobGasUsed fields must be rejected with the appropriate
EngineAPIError.InvalidParams error error.
Source code in tests/cancun/eip4844_blobs/test_excess_blob_gas_fork_transition.py
315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 | |
Parametrized Test Cases¶
This test case is only parametrized by fork.
| Test ID (Abbreviated) | excess_blob_gas_present | blob_gas_used_present |
|---|---|---|
| ...fork_ShanghaiToCancunAtTime15k-blockchain_test-excess_blob_gas_present_True-blob_gas_used_present_False | True | False |
| ...fork_ShanghaiToCancunAtTime15k-blockchain_test-excess_blob_gas_present_False-blob_gas_used_present_True | False | True |
| ...fork_ShanghaiToCancunAtTime15k-blockchain_test-excess_blob_gas_present_True-blob_gas_used_present_True | True | True |