From 2fbb1eddd2e9b064c794c826c73cd0004af832da Mon Sep 17 00:00:00 2001 From: inphi Date: Thu, 10 Nov 2022 14:01:50 -0500 Subject: [PATCH] fix test_process_withdrawals --- .../block_processing/test_process_withdrawals.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tests/core/pyspec/eth2spec/test/eip4844/block_processing/test_process_withdrawals.py b/tests/core/pyspec/eth2spec/test/eip4844/block_processing/test_process_withdrawals.py index 86ac7e4ae..a7db37e42 100644 --- a/tests/core/pyspec/eth2spec/test/eip4844/block_processing/test_process_withdrawals.py +++ b/tests/core/pyspec/eth2spec/test/eip4844/block_processing/test_process_withdrawals.py @@ -6,20 +6,6 @@ from eth2spec.test.helpers.execution_payload import ( from eth2spec.test.helpers.state import next_slot -def prepare_withdrawal_queue(spec, state, num_withdrawals): - pre_queue_len = len(state.withdrawal_queue) - - for i in range(num_withdrawals): - withdrawal = spec.Withdrawal( - index=i + 5, - address=b'\x42' * 20, - amount=200000 + i, - ) - state.withdrawal_queue.append(withdrawal) - - assert len(state.withdrawal_queue) == num_withdrawals + pre_queue_len - - def run_withdrawals_processing(spec, state, execution_payload, valid=True): """ Run ``process_execution_payload``, yielding: @@ -49,8 +35,6 @@ def run_withdrawals_processing(spec, state, execution_payload, valid=True): @with_eip4844_and_later @spec_state_test def test_no_op(spec, state): - prepare_withdrawal_queue(spec, state, 1) - next_slot(spec, state) execution_payload = build_empty_execution_payload(spec, state)