Skip to content

Commit fc07e2d

Browse files
authored
docs: use "at least" instead of "more than" in supermajority check comment (leanEthereum#424)
* chore: use "at least" instead of "more than" in comment * chore: fix typo * docs: clarify some parts in docs/
1 parent 63842fa commit fc07e2d

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/client/chain.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ configuration.
7474

7575
## Chain Justification
7676

77-
Blocks become justified when enough validators attestation for them. Justification
78-
happens when 2/3 of validators agree.
77+
Blocks become justified when enough validators attest for them. Justification
78+
happens when at least 2/3 of validators agree.
7979

8080
Not every slot can be justified. Certain slots are special based on how far
8181
they are from the last finalized slot. Recent slots are always valid. For

docs/client/forkchoice.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ consistent views.
5252
Validators need to know where they can safely submit an attestation. The safe target mechanism
5353
finds the latest block that has enough support.
5454

55-
A block needs attestations from 2/3 of validators to be safe. This threshold ensures
55+
A block needs attestations from at least 2/3 of validators to be safe. This threshold ensures
5656
that conflicting blocks can't both be safe simultaneously.
5757

5858
## Computing Attestation Targets

docs/client/validator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ checkpoint.
9191

9292
### Why Attest
9393

94-
Attestations drive justification and finalization. When 2/3 of validators attestation for the
94+
Attestations drive justification and finalization. When at least 2/3 of validators attest for the
9595
same target, it becomes justified. Justification eventually leads to
9696
finalization.
9797

src/lean_spec/subspecs/containers/state/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ def process_attestations(
602602

603603
# Check whether the vote count crosses the supermajority threshold.
604604
#
605-
# A block becomes justified when more than two-thirds of validators
605+
# A block becomes justified when at least two-thirds of validators
606606
# have voted for it.
607607
#
608608
# We compare integers to avoid floating-point division:

0 commit comments

Comments
 (0)