Skip to content

Commit f498947

Browse files
committed
PR comments by jtraglia
1 parent 2cd9c68 commit f498947

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

specs/electra/beacon-chain.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,8 @@ def get_consolidation_churn_limit(state: BeaconState) -> Gwei:
586586
```python
587587
def get_pending_balance_to_withdraw(state: BeaconState, validator_index: ValidatorIndex) -> Gwei:
588588
return sum(
589-
withdrawal.amount for withdrawal in state.pending_partial_withdrawals if
590-
withdrawal.validator_index == validator_index
589+
withdrawal.amount for withdrawal in state.pending_partial_withdrawals
590+
if withdrawal.validator_index == validator_index
591591
)
592592
```
593593

@@ -1133,7 +1133,8 @@ def get_expected_withdrawals(state: BeaconState) -> Tuple[Sequence[Withdrawal],
11331133
has_excess_balance = state.balances[withdrawal.validator_index] > MIN_ACTIVATION_BALANCE
11341134
if validator.exit_epoch == FAR_FUTURE_EPOCH and has_sufficient_effective_balance and has_excess_balance:
11351135
withdrawable_balance = min(
1136-
state.balances[withdrawal.validator_index] - MIN_ACTIVATION_BALANCE, withdrawal.amount)
1136+
state.balances[withdrawal.validator_index] - MIN_ACTIVATION_BALANCE,
1137+
withdrawal.amount)
11371138
withdrawals.append(Withdrawal(
11381139
index=withdrawal_index,
11391140
validator_index=withdrawal.validator_index,

0 commit comments

Comments
 (0)