Skip to content

Commit 7169386

Browse files
committed
fix tests
1 parent 5037c80 commit 7169386

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/core/pyspec/eth2spec/test/deneb/block_processing/test_process_execution_payload.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ def run_execution_payload_processing(
5252
payment = post_state.builder_pending_payments[
5353
spec.SLOTS_PER_EPOCH + state.slot % spec.SLOTS_PER_EPOCH
5454
]
55-
exit_queue_epoch = spec.compute_exit_epoch_and_update_churn(
56-
post_state, payment.withdrawal.amount
57-
)
58-
payment.withdrawal.withdrawable_epoch = spec.Epoch(
59-
exit_queue_epoch + spec.config.MIN_VALIDATOR_WITHDRAWABILITY_DELAY
60-
)
61-
post_state.builder_pending_withdrawals.append(payment.withdrawal)
55+
amount = payment.withdrawal.amount
56+
if amount > 0:
57+
exit_queue_epoch = spec.compute_exit_epoch_and_update_churn(post_state, amount)
58+
payment.withdrawal.withdrawable_epoch = spec.Epoch(
59+
exit_queue_epoch + spec.config.MIN_VALIDATOR_WITHDRAWABILITY_DELAY
60+
)
61+
post_state.builder_pending_withdrawals.append(payment.withdrawal)
6262
post_state.builder_pending_payments[
6363
spec.SLOTS_PER_EPOCH + state.slot % spec.SLOTS_PER_EPOCH
6464
] = spec.BuilderPendingPayment()

0 commit comments

Comments
 (0)