fix typo: `SLOTS_IN_EPOCH` used instead of `SLOTS_PER_EPOCH`
This commit is contained in:
parent
6814efac2e
commit
77bceeae69
|
@ -751,7 +751,7 @@ def reset_pending_headers(state: BeaconState) -> None:
|
||||||
# Add dummy "empty" PendingShardHeader (default vote for if no shard header available)
|
# Add dummy "empty" PendingShardHeader (default vote for if no shard header available)
|
||||||
next_epoch = get_current_epoch(state) + 1
|
next_epoch = get_current_epoch(state) + 1
|
||||||
next_epoch_start_slot = compute_start_slot_at_epoch(next_epoch)
|
next_epoch_start_slot = compute_start_slot_at_epoch(next_epoch)
|
||||||
for slot in range(next_epoch_start_slot, next_epoch_start_slot + SLOTS_IN_EPOCH):
|
for slot in range(next_epoch_start_slot, next_epoch_start_slot + SLOTS_PER_EPOCH):
|
||||||
for index in range(get_committee_count_per_slot(state, next_epoch)):
|
for index in range(get_committee_count_per_slot(state, next_epoch)):
|
||||||
shard = compute_shard_from_committee_index(state, slot, index)
|
shard = compute_shard_from_committee_index(state, slot, index)
|
||||||
committee_length = len(get_beacon_committee(state, slot, shard))
|
committee_length = len(get_beacon_committee(state, slot, shard))
|
||||||
|
|
Loading…
Reference in New Issue