Consistently use sum instead of count(1)

This commit is contained in:
vbuterin
2021-11-30 06:39:25 -06:00
committed by GitHub
parent 7de1495a42
commit c30662b696

View File

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