Skip to content

Commit

Permalink
followup on #162
Browse files Browse the repository at this point in the history
and ethereum/consensus-specs#732 epoch transition work around
  • Loading branch information
mratsim committed Mar 20, 2019
1 parent 13c7f7f commit 4404939
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions beacon_chain/spec/validator.nim
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,7 @@ func get_crosslink_committees_at_slot*(state: BeaconState, slot: Slot|uint64,
## ``slot`` in the next epoch -- with and without a `registry_change`

let
# TODO: the + 1 here works around a bug, remove when upgrading to
# some more recent version:
# https://github.com/ethereum/eth2.0-specs/pull/732
# TODO remove +1 along with rest of epoch reorganization, then
# remove this 0.4.0 tag.
epoch = slot_to_epoch(slot + 1)
epoch = slot_to_epoch(slot)
current_epoch = get_current_epoch(state)
previous_epoch = get_previous_epoch(state)
next_epoch = current_epoch + 1
Expand Down

0 comments on commit 4404939

Please sign in to comment.