From fde66a7105ab2b38c755cc564aac3d66c33069be Mon Sep 17 00:00:00 2001 From: vbuterin Date: Sat, 2 Mar 2019 20:11:33 -0600 Subject: [PATCH] Update to make CC happy --- 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 70ffcf858..023d64339 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1847,7 +1847,7 @@ def get_winning_root_and_participants(state: BeaconState, shard: Shard) -> Tuple def get_attestations_for(root) -> List[PendingAttestation]: return [a for a in valid_attestations if a.data.crosslink_data_root == root] - winning_root = max(all_roots, key=lambda r: get_attesting_balance(get_attestations_for(r))) + winning_root = max(all_roots, key=lambda r: get_attesting_balance(state, get_attestations_for(r))) return winning_root, get_attesting_indices(get_attestations_for(winning_root)) ```