mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 04:14:54 -05:00
Consistently use sum instead of count(1)
This commit is contained in:
@@ -226,7 +226,7 @@ def process_light_client_update(store: LightClientStore,
|
||||
# Track the maximum number of active participants in the committee signatures
|
||||
store.current_max_active_participants = max(
|
||||
store.current_max_active_participants,
|
||||
update.sync_committee_bits.count(1),
|
||||
sum(update.sync_committee_bits),
|
||||
)
|
||||
|
||||
# Update the optimistic header
|
||||
|
||||
Reference in New Issue
Block a user