Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Three DeFi hacks net $10 million in 48 hours despite ‘renaissance moment’

    August 16, 2025

     XRP poised for $4.19 expansion as bullish structure holds

    August 16, 2025

    Billionaire who introduced Tether to Northern Data leaves UK for Switzerland

    August 16, 2025
    Facebook X (Twitter) Instagram
    Ai Crypto TimesAi Crypto Times
    • Altcoins
      • Bitcoin
      • Coinbase
      • Litecoin
    • Blockchain
    • Crypto
    • Ethereum
    • Lithosphere News Releases
    X (Twitter) Instagram YouTube LinkedIn
    Ai Crypto TimesAi Crypto Times
    Home » Validated, staking on eth2: #2 – Two ghosts in a trench coat

    Validated, staking on eth2: #2 – Two ghosts in a trench coat

    Michael JohnsonBy Michael JohnsonJuly 10, 2025No Comments6 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    Share
    Facebook Twitter LinkedIn Pinterest Email


    Special thanks to Sacha Yves Saint-Leger & Danny Ryan for review.

    In this installment, we’ll discuss the consensus mechanisms behind eth2. Eth2 has a novel approach to deciding which block is the head of the chain, along with which blocks are and are not a part of the chain.

    By using a hybrid between the two mechanisms, eth2 aims to have a consensus which, in addition to being rapid and safe when the network is behaving normally, remains safe even when it’s being attacked.

    A Trilemma

    FLP impossibility is a core result in the field of distributed computation which states that in a distributed system it is not possible to simultaneously have safety, liveness, and full asynchrony unless some unreasonable assumptions can be made about your system.

    Safety is the idea that decisions cannot be unmade whereas liveness captures the notion that new things can be decided. A protocol is asynchronus if there is no bound on how long a message may take to get delivered.

    FLP Trilemma

    If nodes could communicate reliably, always follow the protocol honestly and never crash, then consensus would be easy, but that is not how the world works. When these assumption don’t hold, FLP Impossibility is the proof that at least one of: safety, liveness, or full asynchrony must be compromised.

    GHOSTs and their opinions on forks

    Eth2 uses Greedy Heaviest Observed Subtree (GHOST) as its fork-choice rule. GHOST selects the head of the chain by choosing the fork which has the most votes (it does this by considering all of the votes for each fork block and their respective child blocks).

    Put another way, each time there is a fork, GHOST chooses the side where more of the latest messages support that block’s subtree (i.e. more of the latest messages support either that block or one of its descendants). The algorithm does this until it reaches a block with no children.

    GHOST has the benefit of reducing the efficacy of attacks during times of high network latency as well as minimizing the depth of chain reorgs when compared to the longest-chain rule. This is because while an attacker can keep building blocks efficiently on their own chain thereby making it the longest, GHOST would choose the other fork as there are more votes for it in total.

    In particular, eth2 uses a variation of GHOST which has been adapted to a PoS context called Latest Message Driven GHOST (LMD-GHOST). The idea behind LMD-GHOST is that when calculating the head of the chain, one only considers the latest vote made by each validator, and not any of the votes made in the past. This dramatically decreases the computation required when running GHOST, since the number of forks that need to be considered to execute the fork choice cannot be greater than the number of validators (O(v)O(v)O(v) in Big O notation).

    Under the rules of GHOST, validators/miners can always try to add a new block to the blockchain (liveness), and they can do this at any point in the chain’s history (asynchronous). Since it is live and fully asynchronous, thanks to our friend FLP, we know it can’t be safe.

    GHOST Favours liveness over safety

    The lack of safety presents itself in the form of reorgs where a chain can suddenly switch between forks of arbitrary depth. Obviously this is undesirable and eth1 deals with this by having users make assumptions about how long miners’ blocks will take to be communicated with the rest of the network, this takes the form of waiting for xxx confirmations. Eth2, by contrast, makes no such assumptions.

    The friendly finality gadget

    A blockchain without any notion of safety is useless because no decisions could be reached and users could not agree on the state of the chain. Enter Casper the Friendly Finality Gadget (Casper FFG). Casper FFG is a mechanism which favours safety over liveness when making decisions. This means that while the decisions it makes are final, under poor network conditions, it may not be able to decide on anything.

    FFG is a crypto-economic adaption of the classic Practical Byzantine Fault Tolerent (PBFT) which has phases where nodes first indicate that they’d like to agree on something (justification) and then agree that they’ve seen each other agreeing (finalisation).

    Eth2 does not try to justify and finalise every slot (the time when a block is expected to be produced), but instead only every 32 slots. Collectively, 32 slots is called an epoch. First, validators sign that they agree with all 32 blocks in an epoch. Then, if ≥23\geq \frac{2}{3}≥32​ do so, the block is justified. In a later epoch, validators get another chance to vote to indicate that they have seen the earlier justified epoch and if ≥23\geq \frac{2}{3}≥32​ do this, the epoch is finalised and is forever a part of the eth2 chain.

    FFG employs a clever trick. Votes actually consist of two sub-votes, one for the epoch that is attempting to be justified and another for an earlier epoch that is to become finalised. This saves a lot of extra communication between nodes and helps to achieve the goal of scaling to millions of validators.

    Two ghosts in a trench coat

    Consensus within eth2 relies on both LMD-GHOST – which adds new blocks and decides what the head of the chain is – and Casper FFG which makes the final decision on which blocks are and are not a part of the chain. GHOST’s favourable liveness properties allow new blocks to quickly and efficiently be added to the chain, while FFG follows behind to provide safety by finalising epochs.


    The two protocols are merged by running GHOST from the last finalised block as decided upon by FFG. By construction, the last finalised block is always a part of the chain which means GHOST doesn’t need to consider earlier blocks.

    In the normal case when blocks are being produced and ≥23\geq \frac{2}{3}≥32​ validators are voting on them, these blocks are added to the head of the chain by GHOST, and not long after justified and finalised by FFG (which considers the last few epochs).

    If there is an attack on the network and/or a large proportion of validators go offline, then GHOST continues adding new blocks. However, since GHOST is live, but not safe, it may change its mind about the head of the chain – this is because new blocks are continually added to the chain, which means nodes keep learning new information. FFG on the other hand, favours safety over liveness meaning that it stops finalising blocks until the network is stable enough for validators to vote consistently again.



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Michael Johnson

    Related Posts

    Join Us: EF Protocol Reddit AMA – August 29th, 2025

    August 15, 2025

    SIGN price soars 11% as Sign Foundation completes $12M token buyback

    August 13, 2025

    Fear & Greed Index hits 63 as Bitcoin, ETH, and SOL rebound

    August 7, 2025
    Leave A Reply Cancel Reply

    Don't Miss

    Three DeFi hacks net $10 million in 48 hours despite ‘renaissance moment’

    Coinbase August 16, 2025

    While Aave and Maker (now Sky) founders basked in a ‘DeFi renaissance moment,’ some less…

     XRP poised for $4.19 expansion as bullish structure holds

    August 16, 2025

    Billionaire who introduced Tether to Northern Data leaves UK for Switzerland

    August 16, 2025

    AVAX price on the cusp of a breakout as key metric surges 715%

    August 16, 2025
    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo
    Our Picks

    AGII Develops Adaptive Intelligence Layers to Improve Web3 Workflow Precision

    August 15, 2025

    Imagen Network Enhances Content Discovery and Interaction with Grok AI Integration

    August 15, 2025

    Imagen Network Integrates Grok AI to Deliver More Personalized and Engaging Social Experiences

    August 14, 2025

    Imagen Network (IMAGE) Boosts User Engagement Using XRP for Instant Social Transactions

    August 13, 2025

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    Demo
    • Popular
    • Recent
    • Top Reviews

    Polyhedra’s ZKJ token collapses following ‘abnormal on-chain activity’

    June 17, 2025

    Polyhedra’s ZKJ token collapses following ‘abnormal on-chain activity’

    June 17, 2025

    Colle AI Releases Design-Focused NFT Tools for Real-Time Creator Prototyping

    June 17, 2025

    Three DeFi hacks net $10 million in 48 hours despite ‘renaissance moment’

    August 16, 2025

     XRP poised for $4.19 expansion as bullish structure holds

    August 16, 2025

    Billionaire who introduced Tether to Northern Data leaves UK for Switzerland

    August 16, 2025
    Latest Galleries
    [latest_gallery cat="all" number="5" type="slider"]
    Latest Reviews
    Demo
    Top Posts

    AGII Develops Adaptive Intelligence Layers to Improve Web3 Workflow Precision

    August 15, 20250 Views

    Imagen Network Enhances Content Discovery and Interaction with Grok AI Integration

    August 15, 20250 Views

    Imagen Network Integrates Grok AI to Deliver More Personalized and Engaging Social Experiences

    August 14, 20250 Views

    Imagen Network (IMAGE) Boosts User Engagement Using XRP for Instant Social Transactions

    August 13, 20250 Views
    Don't Miss

    Three DeFi hacks net $10 million in 48 hours despite ‘renaissance moment’

    Coinbase August 16, 2025

    While Aave and Maker (now Sky) founders basked in a ‘DeFi renaissance moment,’ some less…

     XRP poised for $4.19 expansion as bullish structure holds

    August 16, 2025

    Billionaire who introduced Tether to Northern Data leaves UK for Switzerland

    August 16, 2025

    AVAX price on the cusp of a breakout as key metric surges 715%

    August 16, 2025
    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    Demo
    Top Posts

    Bitcoin.com Wallet Earns WalletConnect Certified Badge! | by Bitcoin.com | Jul, 2025

    July 18, 202565 Views

    Justin Sun sues Bloomberg after report claims he owns 60% of TRON tokens

    August 14, 202538 Views

    SIGN price soars 11% as Sign Foundation completes $12M token buyback

    August 13, 202514 Views

    ProfitFarmers Review – Is it Legit? July 2025

    July 7, 20251 Views
    Don't Miss

    Three DeFi hacks net $10 million in 48 hours despite ‘renaissance moment’

    Coinbase August 16, 2025

    While Aave and Maker (now Sky) founders basked in a ‘DeFi renaissance moment,’ some less…

     XRP poised for $4.19 expansion as bullish structure holds

    August 16, 2025

    Billionaire who introduced Tether to Northern Data leaves UK for Switzerland

    August 16, 2025

    AVAX price on the cusp of a breakout as key metric surges 715%

    August 16, 2025
    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    X (Twitter) Instagram YouTube LinkedIn
    Our Picks

    Three DeFi hacks net $10 million in 48 hours despite ‘renaissance moment’

    August 16, 2025

     XRP poised for $4.19 expansion as bullish structure holds

    August 16, 2025

    Billionaire who introduced Tether to Northern Data leaves UK for Switzerland

    August 16, 2025
    Recent Posts
    • Three DeFi hacks net $10 million in 48 hours despite ‘renaissance moment’
    •  XRP poised for $4.19 expansion as bullish structure holds
    • Billionaire who introduced Tether to Northern Data leaves UK for Switzerland
    • AVAX price on the cusp of a breakout as key metric surges 715%
    • No, FTX creditors will not receive $16 billion today
    © 2025 - 2026

    Type above and press Enter to search. Press Esc to cancel.