From 2a1150e5b88195031710cc2a371594d6e7bac583 Mon Sep 17 00:00:00 2001 From: terence tsao Date: Tue, 13 Nov 2018 11:24:49 -0800 Subject: [PATCH] fixed get_active_validator_indices typo (#126) * get_active_validator_indices fixes * add a newline --- specs/beacon-chain.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specs/beacon-chain.md b/specs/beacon-chain.md index c8bdf75dd..e475db064 100644 --- a/specs/beacon-chain.md +++ b/specs/beacon-chain.md @@ -328,8 +328,11 @@ The crystallized state recalculation generally focuses on changes to the validat Below are various helper functions. +The following is a function that gets active validator indices from the validator list: +```python def get_active_validator_indices(validators) return [i for i, v in enumerate(validators) if v.status == ACTIVE] +``` The following is a function that shuffles the validator list: