Consistently use sum instead of count(1)
This commit is contained in:
parent
7de1495a42
commit
c30662b696
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue