Merge pull request #2484 from ericsson49/ericsson49/fix_reset_pending_shard_work

Fix typing problem in `reset_pending_shard_work`
This commit is contained in:
Diederik Loerakker 2021-06-17 19:05:05 +02:00 committed by GitHub
commit 903b363c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -784,7 +784,7 @@ def reset_pending_shard_work(state: BeaconState) -> None:
for committee_index in range(committees_per_slot): for committee_index in range(committees_per_slot):
shard = (start_shard + committee_index) % active_shards shard = (start_shard + committee_index) % active_shards
# a committee is available, initialize a pending shard-header list # a committee is available, initialize a pending shard-header list
committee_length = len(get_beacon_committee(state, slot, committee_index)) committee_length = len(get_beacon_committee(state, slot, CommitteeIndex(committee_index)))
state.shard_buffer[buffer_index][shard].status.change( state.shard_buffer[buffer_index][shard].status.change(
selector=SHARD_WORK_PENDING, selector=SHARD_WORK_PENDING,
value=List[PendingShardHeader, MAX_SHARD_HEADERS_PER_SHARD]( value=List[PendingShardHeader, MAX_SHARD_HEADERS_PER_SHARD](