Fix tests
This commit is contained in:
parent
5b0bfe7eb6
commit
0dda0b2633
|
@ -30,11 +30,11 @@ def test_one_blob(spec, state):
|
||||||
|
|
||||||
@with_eip4844_and_later
|
@with_eip4844_and_later
|
||||||
@spec_state_test
|
@spec_state_test
|
||||||
def test_multiple_blobs(spec, state):
|
def test_max_blobs(spec, state):
|
||||||
yield 'pre', state
|
yield 'pre', state
|
||||||
|
|
||||||
block = build_empty_block_for_next_slot(spec, state)
|
block = build_empty_block_for_next_slot(spec, state)
|
||||||
opaque_tx, _, blob_kzg_commitments = get_sample_opaque_tx(spec, blob_count=5)
|
opaque_tx, _, blob_kzg_commitments = get_sample_opaque_tx(spec, blob_count=spec.MAX_BLOBS_PER_BLOCK)
|
||||||
block.body.blob_kzg_commitments = blob_kzg_commitments
|
block.body.blob_kzg_commitments = blob_kzg_commitments
|
||||||
block.body.execution_payload.transactions = [opaque_tx]
|
block.body.execution_payload.transactions = [opaque_tx]
|
||||||
signed_block = state_transition_and_sign_block(spec, state, block)
|
signed_block = state_transition_and_sign_block(spec, state, block)
|
||||||
|
|
|
@ -45,5 +45,5 @@ def test_validate_blobs_sidecar_two_blobs(spec, state):
|
||||||
|
|
||||||
@with_eip4844_and_later
|
@with_eip4844_and_later
|
||||||
@spec_state_test
|
@spec_state_test
|
||||||
def test_validate_blobs_sidecar_ten_blobs(spec, state):
|
def test_validate_blobs_sidecar_max_blobs(spec, state):
|
||||||
_run_validate_blobs_sidecar_test(spec, state, blob_count=10)
|
_run_validate_blobs_sidecar_test(spec, state, blob_count=spec.MAX_BLOBS_PER_BLOCK)
|
||||||
|
|
Loading…
Reference in New Issue