mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-20 07:29:02 +00:00
Refactor loop
This commit is contained in:
parent
fc4dad6a13
commit
ac0686de04
@ -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 = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user