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@21fb11c8
.
Generate fixtures for these test cases for Prague with:
fill -v tests/cancun/eip4844_blobs/test_excess_blob_gas_fork_transition.py::test_invalid_pre_fork_block_with_blob_fields --fork Prague
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
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
|
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 |