mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-13 12:14:19 +00:00
add break condition
This commit is contained in:
parent
f0eeb71945
commit
8e50297543
@ -355,6 +355,7 @@ def get_next_epoch_crosslink_committees(state: BeaconState,
|
||||
selected_committees = [committee for committee in shard_committees if validator_index in committee[0]]
|
||||
if len(selected_committees) > 0:
|
||||
potential_assignments.append(selected_committees)
|
||||
break
|
||||
|
||||
return potential_assignments
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user