From c156ea6adcc798a0377ef81435480e5429f2c298 Mon Sep 17 00:00:00 2001 From: Potuz Date: Mon, 31 Oct 2022 16:52:07 -0300 Subject: [PATCH] linting and typo --- specs/capella/beacon-chain.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specs/capella/beacon-chain.md b/specs/capella/beacon-chain.md index 349ca02af..cadebcd18 100644 --- a/specs/capella/beacon-chain.md +++ b/specs/capella/beacon-chain.md @@ -292,7 +292,7 @@ def get_expected_withdrawals(state: BeaconState) -> Sequence[Withdrawal]: while (len(ret) < MAX_WITHDRAWALS_PER_PAYLOAD) and (probed < len(state.validators)): val = state.validators[index] balance = state.balances[index] - if is_fully_withdrawable(val, balance, epoch): + if is_fully_withdrawable_validator(val, balance, epoch): withdrawal = Withdrawal( index=withdrawal_index, validator_index=index, @@ -301,12 +301,12 @@ def get_expected_withdrawals(state: BeaconState) -> Sequence[Withdrawal]: ) ret.append(withdrawal) withdrawal_index = WithdrawalIndex(withdrawal_index + 1) - elif is_partially_withdrawable(val, balance): + elif is_partially_withdrawable_validator(val, balance): withdrawal = Withdrawal( index=withdrawal_index, validator_index=index, address=ExecutionAddress(val.withdrawal_credentials[12:]), - amount=balance-MAX_EFFECTIVE_BALANCE, + amount=balance - MAX_EFFECTIVE_BALANCE, ) ret.append(withdrawal) withdrawal_index = WithdrawalIndex(withdrawal_index + 1)