Fix the 2/3 threshold calculation
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
This commit is contained in:
parent
d01a4ad823
commit
ce87914326
|
@ -185,7 +185,7 @@ def process_light_client_update(store: LightClientStore, update: LightClientUpda
|
|||
store.valid_updates.append(update)
|
||||
|
||||
if (
|
||||
sum(update.sync_committee_bits) * 3 > len(update.sync_committee_bits) * 2
|
||||
sum(update.sync_committee_bits) * 3 >= len(update.sync_committee_bits) * 2
|
||||
and update.header != update.finality_header
|
||||
):
|
||||
# Apply update if 2/3 quorum is reached and we have a finality proof
|
||||
|
|
Loading…
Reference in New Issue