From ac0686de045c78376d9b2f2d193890d3a8c77672 Mon Sep 17 00:00:00 2001 From: Dankrad Feist Date: Mon, 28 Dec 2020 17:39:49 +0000 Subject: [PATCH] Refactor loop --- specs/phase1/beacon-chain.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specs/phase1/beacon-chain.md b/specs/phase1/beacon-chain.md index b0640a0c9..5244dbe99 100644 --- a/specs/phase1/beacon-chain.md +++ b/specs/phase1/beacon-chain.md @@ -567,10 +567,10 @@ def process_pending_headers(state: BeaconState): c for c in state.previous_epoch_pending_shard_headers if (c.slot, c.shard) == (slot, shard) ] + # The entire committee (and its balance) + full_committee = get_beacon_committee(state, slot, shard) + full_committee_balance = get_total_balance(state, full_committee) if True not in [c.confirmed for c in candidates]: - # The entire committee (and its balance) - full_committee = get_beacon_committee(state, slot, shard) - full_committee_balance = get_total_balance(state, full_committee) # The set of voters who voted for each header # (and their total balances) voting_sets = [