Skip to content

Commit 2b4d94a

Browse files
authored
Merge pull request #3816 from ethereum/dapplion-patch-2
Simplify is_better_update condition
2 parents 405fcd1 + fcd905c commit 2b4d94a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specs/altair/light-client/sync-protocol.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def is_better_update(new_update: LightClientUpdate, old_update: LightClientUpdat
232232
new_has_supermajority = new_num_active_participants * 3 >= max_active_participants * 2
233233
old_has_supermajority = old_num_active_participants * 3 >= max_active_participants * 2
234234
if new_has_supermajority != old_has_supermajority:
235-
return new_has_supermajority > old_has_supermajority
235+
return new_has_supermajority
236236
if not new_has_supermajority and new_num_active_participants != old_num_active_participants:
237237
return new_num_active_participants > old_num_active_participants
238238

0 commit comments

Comments
 (0)