Add back effective balance initialisation

This commit is contained in:
Justin Drake 2019-06-30 23:49:53 +01:00
parent d329e90aa5
commit b582afed84
1 changed files with 1 additions and 0 deletions

View File

@ -1691,6 +1691,7 @@ def process_deposit(state: BeaconState, deposit: Deposit) -> None:
activation_epoch=FAR_FUTURE_EPOCH,
exit_epoch=FAR_FUTURE_EPOCH,
withdrawable_epoch=FAR_FUTURE_EPOCH,
effective_balance=min(amount - amount % EFFECTIVE_BALANCE_INCREMENT, MAX_EFFECTIVE_BALANCE),
))
state.balances.append(amount)
else: