Refactor loop

This commit is contained in:
Dankrad Feist
2020-12-28 17:39:49 +00:00
committed by protolambda
parent fc4dad6a13
commit ac0686de04

View File

@@ -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 = [