mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-01 15:34:55 -05:00
PR feedback of Danny + verify MAX_BLOBS_PER_BLOCK size in unittest
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user