Skip to content

Commit

Permalink
Merge pull request #1924 from ericsson49/fix_upgrade_to_phase1
Browse files Browse the repository at this point in the history
BeaconState.exposed_derived_secrets (of Vector type) initialized to an empty list
  • Loading branch information
djrtwo authored Jun 22, 2020
2 parents 520ad97 + 723784b commit e0d09e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs/phase1/phase1-fork.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def upgrade_to_phase1(pre: phase0.BeaconState) -> BeaconState:
current_light_committee=CompactCommittee(), # computed after state creation
next_light_committee=CompactCommittee(),
# Custody game
exposed_derived_secrets=[] * EARLY_DERIVED_SECRET_PENALTY_MAX_FUTURE_EPOCHS,
exposed_derived_secrets=[()] * EARLY_DERIVED_SECRET_PENALTY_MAX_FUTURE_EPOCHS,
# exposed_derived_secrets will fully default to zeroes
)
next_epoch = Epoch(epoch + 1)
Expand Down

0 comments on commit e0d09e8

Please sign in to comment.