Skip to content

Commit 68bd38e

Browse files
docs(attack-and-defense): apply AspectRatio component to iframe
1 parent 7410a42 commit 68bd38e

File tree

1 file changed

+6
-1
lines changed
  • src/content/developers/docs/consensus-mechanisms/pos/attack-and-defense

1 file changed

+6
-1
lines changed

src/content/developers/docs/consensus-mechanisms/pos/attack-and-defense/index.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ A more sophisticated attack can split the honest validator set into discrete gro
6565

6666
**Bouncing attacks** are similar. Votes are again withheld by the attacking validators. Instead of releasing the votes to keep an even split between two forks, they use their votes at opportune moments to justify checkpoints that alternate between fork A and fork B. This flip-flopping of justification between two forks prevents there from being pairs of justified source and target checkpoints that can be finalized on either chain, halting finality.
6767

68-
<iframe title="vimeo-player" src="https://player.vimeo.com/video/637529564?h=25bfe1321e" width="640" height="360" frameborder="0" allowfullscreen></iframe>
68+
import { AspectRatio } from '@chakra-ui/react'
69+
70+
<AspectRatio ratio={ 16 / 9 } maxWidth="560px" my={8}>
71+
72+
<iframe title="vimeo-player" src="https://player.vimeo.com/video/637529564?h=25bfe1321e" frameborder="0" allowfullscreen />
73+
</AspectRatio>
6974
7075
Both bouncing and balancing attacks rely upon the attacker having very fine control over message timing across the network, which is unlikely. Nevertheless, defenses are built into the protocol in the form of additional weighting given to prompt messages compared to slow ones. This is known as [proposer-weight boosting](https://github.com/ethereum/consensus-specs/pull/2730). To defend against bouncing attacks the fork-choice algorithm was updated so that the latest justified checkpoint can only switch to that of an alternative chain during the [first 1/3 of the slots in each epoch](https://ethresear.ch/t/prevention-of-bouncing-attack-on-ffg/6114). This condition prevents the attacker from saving up votes to deploy later - the fork choice algorithm simply stays loyal to the checkpoint it chose in the first 1/3 of the epoch during which time most honest validators would have voted.
7176

0 commit comments

Comments
 (0)