mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-26 01:05:15 +00:00
Add test_invalid_correct_input__execution_invalid
This commit is contained in:
parent
fc45220a7d
commit
bee8fa16e5
@ -173,3 +173,20 @@ def test_zeroed_commitment(spec, state):
|
|||||||
execution_payload.block_hash = compute_el_block_hash(spec, execution_payload)
|
execution_payload.block_hash = compute_el_block_hash(spec, execution_payload)
|
||||||
|
|
||||||
yield from run_execution_payload_processing(spec, state, execution_payload, blob_kzg_commitments)
|
yield from run_execution_payload_processing(spec, state, execution_payload, blob_kzg_commitments)
|
||||||
|
|
||||||
|
|
||||||
|
@with_deneb_and_later
|
||||||
|
@spec_state_test
|
||||||
|
def test_invalid_correct_input__execution_invalid(spec, state):
|
||||||
|
"""
|
||||||
|
The versioned hashes are wrong, but the testing ExecutionEngine returns VALID by default.
|
||||||
|
"""
|
||||||
|
execution_payload = build_empty_execution_payload(spec, state)
|
||||||
|
|
||||||
|
opaque_tx, _, blob_kzg_commitments, _ = get_sample_opaque_tx(spec)
|
||||||
|
|
||||||
|
execution_payload.transactions = [opaque_tx]
|
||||||
|
execution_payload.block_hash = compute_el_block_hash(spec, execution_payload)
|
||||||
|
|
||||||
|
yield from run_execution_payload_processing(spec, state, execution_payload, blob_kzg_commitments,
|
||||||
|
valid=False, execution_valid=False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user