MAX_COMMITTEE_SIZE -> MAX_VALIDATORS_PER_COMMITTEE

This commit is contained in:
Dankrad Feist 2020-12-28 16:03:20 +00:00 committed by protolambda
parent 6e249e8932
commit 126d07cfb3
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623

View File

@ -513,7 +513,7 @@ def process_shard_header(state: BeaconState,
shard=header.shard,
commitment=header.commitment,
root=header_root,
votes=Bitlist[MAX_COMMITTEE_SIZE]([0] * committee_length),
votes=Bitlist[MAX_VALIDATORS_PER_COMMITTEE]([0] * committee_length),
confirmed=False
))
```
@ -655,7 +655,7 @@ def reset_pending_headers(state: BeaconState):
shard=shard,
commitment=DataCommitment(),
root=Root(),
votes=Bitlist[MAX_COMMITTEE_SIZE]([0] * committee_length),
votes=Bitlist[MAX_VALIDATORS_PER_COMMITTEE]([0] * committee_length),
confirmed=False
))