File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
tests/core/pyspec/eth2spec/test/deneb/block_processing Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,13 @@ def run_execution_payload_processing(
52
52
payment = post_state .builder_pending_payments [
53
53
spec .SLOTS_PER_EPOCH + state .slot % spec .SLOTS_PER_EPOCH
54
54
]
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 )
62
62
post_state .builder_pending_payments [
63
63
spec .SLOTS_PER_EPOCH + state .slot % spec .SLOTS_PER_EPOCH
64
64
] = spec .BuilderPendingPayment ()
You can’t perform that action at this time.
0 commit comments