Skip to content

Commit 937a3a3

Browse files
authored
Fix is_builder_payment_withdrawable function (#4774)
We were checking if the builder had not been slashed or if the withdrawable epoch was in the future compared to the current epoch. We should check if the builder has not been slashed or if the current epoch is equal to or has passed the withdrawable epoch.
1 parent f0ef907 commit 937a3a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specs/gloas/beacon-chain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ def is_builder_payment_withdrawable(
754754
"""
755755
builder = state.validators[withdrawal.builder_index]
756756
current_epoch = compute_epoch_at_slot(state.slot)
757-
return not builder.slashed or builder.withdrawable_epoch >= current_epoch
757+
return not builder.slashed or current_epoch >= builder.withdrawable_epoch
758758
```
759759

760760
##### Modified `get_expected_withdrawals`

0 commit comments

Comments
 (0)