From c30662b696e5ae3e8c4b0afb0bcfc736bbf547ed Mon Sep 17 00:00:00 2001 From: vbuterin Date: Tue, 30 Nov 2021 06:39:25 -0600 Subject: [PATCH] Consistently use sum instead of count(1) --- specs/altair/sync-protocol.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/altair/sync-protocol.md b/specs/altair/sync-protocol.md index ce7ae6252..401effc16 100644 --- a/specs/altair/sync-protocol.md +++ b/specs/altair/sync-protocol.md @@ -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