PR feedback of Danny + verify `MAX_BLOBS_PER_BLOCK` size in unittest

This commit is contained in:
Hsiao-Wei Wang 2023-05-24 16:32:39 +08:00
parent f0a4281afd
commit e9cc8dcc05
No known key found for this signature in database
GPG Key ID: AE3D6B174F971DE4
2 changed files with 13 additions and 1 deletions

View File

@ -73,7 +73,7 @@ The blob transactions are packed into the execution payload by the EL/builder wi
| Name | Value |
| - | - |
| `MAX_BLOB_COMMITMENTS_PER_BLOCK` | `uint64(2**12)` (= 4096) | hardfork independent fixed theoretical limit same as `LIMIT_BLOBS_PER_TX` (see EIP 4844) |
| `MAX_BLOB_COMMITMENTS_PER_BLOCK` | `uint64(2**12)` (= 4096) | hardfork independent fixed theoretical limit same as `LIMIT_BLOBS_PER_TX` (see EIP 4844) |
| `MAX_BLOBS_PER_BLOCK` | `uint64(2**2)` (= 4) | Maximum number of blobs in a single block limited by `MAX_BLOB_COMMITMENTS_PER_BLOCK` |
## Configuration

View File

@ -0,0 +1,12 @@
from eth2spec.test.context import (
single_phase,
spec_test,
with_deneb_and_later,
)
@with_deneb_and_later
@spec_test
@single_phase
def test_length(spec):
assert spec.MAX_BLOBS_PER_BLOCK < spec.MAX_BLOB_COMMITMENTS_PER_BLOCK