Update to make CC happy
This commit is contained in:
parent
ce5599db2f
commit
fde66a7105
|
@ -1847,7 +1847,7 @@ def get_winning_root_and_participants(state: BeaconState, shard: Shard) -> Tuple
|
||||||
def get_attestations_for(root) -> List[PendingAttestation]:
|
def get_attestations_for(root) -> List[PendingAttestation]:
|
||||||
return [a for a in valid_attestations if a.data.crosslink_data_root == root]
|
return [a for a in valid_attestations if a.data.crosslink_data_root == root]
|
||||||
|
|
||||||
winning_root = max(all_roots, key=lambda r: get_attesting_balance(get_attestations_for(r)))
|
winning_root = max(all_roots, key=lambda r: get_attesting_balance(state, get_attestations_for(r)))
|
||||||
|
|
||||||
return winning_root, get_attesting_indices(get_attestations_for(winning_root))
|
return winning_root, get_attesting_indices(get_attestations_for(winning_root))
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue