From b9c95b722d9400c29bb0258619e94c665d43d89a Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Thu, 11 Mar 2021 08:55:55 -0700 Subject: [PATCH] one more hf-1 to Altair conversion --- specs/altair/beacon-chain.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/specs/altair/beacon-chain.md b/specs/altair/beacon-chain.md index d2e060cdf..51817fd21 100644 --- a/specs/altair/beacon-chain.md +++ b/specs/altair/beacon-chain.md @@ -519,9 +519,8 @@ def process_deposit(state: BeaconState, deposit: Deposit) -> None: # Add validator and balance entries state.validators.append(get_validator_from_deposit(state, deposit)) state.balances.append(amount) - # [Added in hf-1] Initialize empty participation flags for new validator - state.previous_epoch_participation.append(ParticipationFlags(0b0000_0000)) - state.current_epoch_participation.append(ParticipationFlags(0b0000_0000)) + state.previous_epoch_participation.append(ParticipationFlags(0b0000_0000)) # [New in Altair] + state.current_epoch_participation.append(ParticipationFlags(0b0000_0000)) # [New in Altair] else: # Increase balance by deposit amount index = ValidatorIndex(validator_pubkeys.index(pubkey))