From 147ee2f991f513c0962f5b610f431f86b92a0f88 Mon Sep 17 00:00:00 2001 From: Taras Bobrovytsky Date: Mon, 4 Feb 2019 01:49:16 -0600 Subject: [PATCH] Fix get_total_balance() --- specs/core/0_beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 788876689..cc78c8b71 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1049,7 +1049,7 @@ def get_total_balance(state: BeaconState, validators: List[ValidatorIndex]) -> G """ Return the combined effective balance of an array of validators. """ - sum([get_effective_balance(state, i) for i in validators]) + return sum([get_effective_balance(state, i) for i in validators]) ``` ### `get_fork_version`