Skip to content

Commit

Permalink
Finnish refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlBeek committed Jun 29, 2019
1 parent 4ed7af7 commit 0c29c51
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ def get_shards_for_slot(spec, state, slot):
return [shard + i for i in range(committees_per_slot)]


def get_committee_size(spec, epoch_start_shard, shard, committee_count, indices):
committee_index = (shard + spec.SHARD_COUNT - epoch_start_shard) % spec.SHARD_COUNT
start = (len(indices) * committee_index) // committee_count
end = (len(indices) * (committee_index + 1)) // committee_count
size = end - start
return size


def add_mock_attestations(spec, state, epoch, source, target, sufficient_support=False):
# we must be at the end of the epoch
assert (state.slot + 1) % spec.SLOTS_PER_EPOCH == 0
Expand Down

0 comments on commit 0c29c51

Please sign in to comment.