allow fault tolerance equal to threshold, not just above

This commit is contained in:
Alex Stokes 2021-05-04 13:25:34 -07:00
parent 488bf2c4a0
commit 7a168be862
No known key found for this signature in database
GPG Key ID: 99B3D88FD6C55A69

View File

@ -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.finality_header != BeaconBlockHeader()
):
# Apply update if (1) 2/3 quorum is reached and (2) we have a finality proof.