use `List[PendingShardHeader,...]` instead of `MutableSequence`, since `remerkleable.List` does not implement the latter

This commit is contained in:
ericsson 2021-06-16 14:06:17 +03:00
parent d83ca352d5
commit 5b4f89875c
1 changed files with 1 additions and 1 deletions

View File

@ -608,7 +608,7 @@ def process_shard_header(state: BeaconState, signed_header: SignedShardBlobHeade
assert committee_work.status.selector == SHARD_WORK_PENDING
# Check that this header is not yet in the pending list
current_headers: MutableSequence[PendingShardHeader] = committee_work.status.value
current_headers: List[PendingShardHeader, MAX_SHARD_HEADERS_PER_SHARD] = committee_work.status.value
header_root = hash_tree_root(header)
assert header_root not in [pending_header.root for pending_header in current_headers]