How PoS Blockchains Manage Forks

·

Main public blockchains can generally be categorized into three types based on their consensus mechanisms: Proof of Work (PoW), Proof of Stake (PoS), and Practical Byzantine Fault Tolerance (PBFT). The choice of consensus largely determines the network's transaction throughput (TPS), degree of decentralization, and node scale.

Unlike PoW, both PoS and PBFT face a fundamental challenge: how to recover when a soft fork occurs? Since neither PoS nor PBFT requires significant computational power to produce blocks, they cannot rely on the "longest chain rule" used in PoW systems.

Understanding Consensus Mechanisms

Proof of Work (PoW) Chains

PoW-based chains include Bitcoin (BTC), Bitcoin Cash (BCH), Bitcoin SV (BSV), Litecoin (LTC), Dogecoin (DOGE), and Zcash (ZEC). These networks use the longest chain rule. When multiple forks occur, nodes simply select the chain with the highest block height. The high computational cost of producing blocks makes attacks economically prohibitive.

Proof of Stake (PoS) Chains

PoS-based networks include Ethereum (ETH), Binance Chain (BNB), TRON, Polkadot (DOT), The Open Network (TON), Cardano (ADA), Avalanche (AVAX), and NEO. Nearly all smart contract platforms today use some form of PoS consensus.

PBFT-Based Chains

PBFT-style consensus is used by Cosmos (ATOM), Solana (SOL), TON, Ontology (ONT), Aptos (APT), and Sui. Cosmos remains the most prominent in this category, while Solana has shown potential to surpass Ethereum in some metrics, and TON has demonstrated significant growth.

Some might question why SOL is categorized under PBFT when it uses Proof of History (PoH), or why TON is included when it features staking mechanisms. The answer lies in two distinctions:

First, Solana does implement a BFT-style consensus called Tower BFT, where PoH serves as a cryptographic clock rather than a complete consensus mechanism.

Second, hybrid systems like PoS+BFT are categorized based on their primary consensus approach. While Cosmos features staking and rewards, it's primarily recognized for its BFT implementation rather than pure PoS.

The Fork Challenge in PoS and PBFT

When facing fork scenarios, PoS and PBFT consensus mechanisms must address two critical aspects:

  1. Validator Set Consistency: Both systems typically use Verifiable Random Functions (VRF) to select block producers from a candidate list. How do these systems ensure all nodes agree on the validator set?
  2. Chain Selection Rules: After a fork occurs, what rules govern which chain becomes canonical? Ethereum calls this "Forkchoice," while Cardano refers to it as "Chain selection rule."

Managing Validator Set Inconsistencies

Consortium Blockchains

Consortium blockchains represent the simplest case. Without native cryptocurrency, they operate as pure PBFT systems with no staking mechanism.

These networks feature high entry barriers, requiring authorization or approval to join. Technically, each node maintains a configuration file containing the public keys and indices of all network members. Adding a node requires updating this configuration across all participants.

VRF selection typically returns a number corresponding to an index in this predefined list. While this approach lacks flexibility, it ensures validator set consistency through explicit configuration. Any inconsistency would represent a configuration error that would be immediately apparent and easily remedied.

Cosmos Approach

Cosmos Hub utilizes CometBFT consensus. Participants must stake at least 180 ATOM tokens to register as validators, becoming eligible for block production selection.

In BFT consensus, voting occurs before block finalization. If validator sets disagree, two nodes might produce blocks at the same height. Other nodes would then vote on these competing blocks.

Under normal network conditions, only one block can receive more than two-thirds of votes, effectively excluding nodes with inconsistent validator sets from influencing consensus.

During network partitions, nodes with incorrect validator sets would be isolated. Unless an entire subnet shares the same incorrect validator set while disconnected from the main network, inconsistent validator sets cannot disrupt consensus.

Cardano's Pure PoS System

Cardano implements one of the purest forms of PoS without voting mechanisms. Its consensus has evolved through multiple iterations, though the technical details are complex and extensive.

Any participant can delegate stakes to stake pools, sharing rewards proportionally without gaining block production rights. Only registered stake pools—approximately 300 currently—can be selected to produce blocks through random selection.

When stake pool lists disagree between nodes, and multiple blocks are produced in the same slot, Cardano activates its chain selection rules. The network essentially treats this as a fork scenario and employs recovery mechanisms.

Ethereum's Validator Management

Becoming an Ethereum validator requires staking 32 ETH through the deposit contract. All validators obtain validator set information from this contract.

To ensure synchronization, each block includes an "Eth Data" field containing validator set information, including total validators and deposit root data. Validators include this information when producing blocks.

Ethereum updates its validator set approximately every 17 hours. New validators only join the active set when more than half of blocks include the updated Eth Data information referencing them.

This gradual, confirmation-based approach makes validator set inconsistencies extremely unlikely in practice.

Chain Selection During Forks

Ethereum's Checkpoint System

When multiple forks emerge, Ethereum's selection process is relatively straightforward due to its voting mechanism. Each block records how many validators voted for it.

Ethereum's fork choice relies on a checkpoint system. The chain operates in epochs of 32 slots (approximately 6.4 minutes each). Each epoch represents a checkpoint.

When a checkpoint receives more than two-thirds of validator votes, it achieves "justified" status. A checkpoint becomes "finalized" when a subsequent checkpoint two epochs later also becomes justified. Transactions typically achieve finality within about 15 minutes through this mechanism.

The fork choice rule selects the chain with the most checkpoints rather than simply the longest chain, providing security through this finalized checkpoint system.

Cardano's Evolving Rules

Cardano's current chain selection rules are provided by Ouroboros Genesis, which builds upon previous iterations including Ouroboros Praos.

The earlier Praos version introduced a "maxvalid" rule, which Genesis enhanced by incorporating a "moving checkpoint" feature, creating the "maxvalid-mc" rule.

This approach essentially means that when facing multiple forks, the protocol will select the longest chain only if the difference is within k blocks. If forks exceed k blocks, they're automatically rejected. This moving checkpoint mechanism prevents certain attack vectors while maintaining network security.

Cosmos BFT Stability

In properly functioning PBFT networks with consistent validator sets, forks should not occur under normal conditions. The voting mechanism that precedes block finalization ensures only one canonical chain emerges.

Frequently Asked Questions

What distinguishes PoS from PBFT in handling forks?
PoS systems typically rely on economic stakes and cryptographic randomness for fork resolution, while PBFT uses explicit voting among known validators. PoS emphasizes chain selection rules, while PBFT prevents forks through pre-block voting.

How does validator set size affect fork recovery?
Larger validator sets generally provide greater security but may slow recovery coordination. Smaller sets enable faster consensus but may be more vulnerable to collusion. Most networks balance these factors through carefully designed incentives and thresholds.

Can PoS chains experience permanent forks?
While theoretically possible, permanent forks are extremely unlikely in well-designed PoS systems. Economic incentives typically drive validators toward consensus on a single chain, and built-in recovery mechanisms provide clear resolution paths.

What role does slashing play in preventing forks?
Slashing mechanisms penalize validators who contribute to fork scenarios by validating multiple chains simultaneously. This economic disincentive significantly reduces the likelihood of malicious or accidental fork creation.

How do different chains communicate validator set changes?
Most networks use block content to communicate validator set updates. Ethereum includes this information in the Eth Data field, while other chains may use specialized transactions or separate communication channels to ensure all nodes maintain consistent validator information.

What happens during network partitions?
During network splits, each partition may continue producing blocks independently. When connectivity restores, chain selection rules determine which chain becomes canonical based on accumulated votes, stakes, or other consensus-specific metrics.

Conclusion

Each consensus implementation incorporates detailed rules for handling forks, refined through both theoretical design and practical operation. The specific approach reflects each network's design philosophy and priority balance between security, decentralization, and performance.

Modern blockchain networks have developed sophisticated mechanisms to ensure consistent validator sets and clear chain selection rules, making them resilient against various fork scenarios. These systems continue to evolve as networks face new challenges and opportunities in the blockchain landscape.

👉 Explore consensus mechanism details