Update validator.md
This commit is contained in:
parent
ec633e8871
commit
2014edbbaa
|
@ -32,7 +32,6 @@ The proposer should run the following function to construct an on chain final ag
|
|||
|
||||
```python
|
||||
def compute_on_chain_aggregate(network_aggregates: List[Attestation]) -> Attestation:
|
||||
|
||||
aggregates = sorted(network_aggregates, key=lambda a: get_committee_indices(a.committee_bits)[0])
|
||||
|
||||
data = aggregates[0].data
|
||||
|
@ -43,10 +42,7 @@ def compute_on_chain_aggregate(network_aggregates: List[Attestation]) -> Attesta
|
|||
committee_flags = [(index in committee_indices) for index in range(0, MAX_COMMITTEES_PER_SLOT)]
|
||||
committee_bits = Bitvector[MAX_COMMITTEES_PER_SLOT](committee_flags)
|
||||
|
||||
return Attestation(aggregation_bits=aggregation_bits,
|
||||
data=data,
|
||||
committee_bits=committee_bits,
|
||||
signature=signature)
|
||||
return Attestation(aggregation_bits, data, committee_bits, signature)
|
||||
```
|
||||
|
||||
### Attesting
|
||||
|
|
Loading…
Reference in New Issue