add break condition

This commit is contained in:
Danny Ryan 2019-01-30 08:02:23 -08:00
parent f0eeb71945
commit 8e50297543
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 1 additions and 0 deletions

View File

@ -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]] selected_committees = [committee for committee in shard_committees if validator_index in committee[0]]
if len(selected_committees) > 0: if len(selected_committees) > 0:
potential_assignments.append(selected_committees) potential_assignments.append(selected_committees)
break
return potential_assignments return potential_assignments
``` ```