Remove state.get_crosslink_committee fn

Replaced by state.get_crosslink_committee_for_shard
This commit is contained in:
Paul Hauner
2019-05-19 17:08:09 +10:00
parent ea96d24420
commit 9264ec1aa9
5 changed files with 18 additions and 31 deletions

View File

@@ -163,7 +163,8 @@ pub fn process_crosslinks<T: EthSpec>(
let epoch = relative_epoch.into_epoch(state.current_epoch());
for offset in 0..state.get_epoch_committee_count(relative_epoch)? {
let shard = (state.get_epoch_start_shard(relative_epoch)? + offset) % spec.shard_count;
let crosslink_committee = state.get_crosslink_committee(epoch, shard, spec)?;
let crosslink_committee =
state.get_crosslink_committee_for_shard(shard, relative_epoch)?;
let winning_root = winning_root(state, shard, epoch, spec)?;