From 8e50297543e6d7885162881f71bd761a01673086 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Wed, 30 Jan 2019 08:02:23 -0800 Subject: [PATCH] add break condition --- specs/validator/0_beacon-chain-validator.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specs/validator/0_beacon-chain-validator.md b/specs/validator/0_beacon-chain-validator.md index fd6f69d6f..9edfa4ba2 100644 --- a/specs/validator/0_beacon-chain-validator.md +++ b/specs/validator/0_beacon-chain-validator.md @@ -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 ```