Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

Fork

A fork is a divergence in a blockchain's transaction history, creating two potential paths forward, which can be temporary (soft fork) or permanent (hard fork) due to protocol upgrades or disagreements.
Chainscore © 2026
definition
BLOCKCHAIN CONSENSUS

What is a Fork?

A fork is a fundamental mechanism in blockchain governance and protocol evolution, describing a divergence in the network's transaction history.

A fork is a change to a blockchain's protocol or set of rules that creates an alternative path in the network's transaction history, resulting in two potential versions of the chain. This occurs when nodes—the computers running the blockchain software—disagree on the validity of new blocks or the rules for creating them. Forks are categorized by their permanence and intent, primarily as soft forks or hard forks. They are a critical feature of decentralized systems, enabling upgrades, resolving disputes, and allowing for community-led evolution of the network's codebase.

A soft fork is a backward-compatible upgrade, where new rules are a subset of the old rules. Nodes that have not upgraded to the new software will still see new blocks as valid, though they may not be able to produce them. This creates a temporary divergence that is typically resolved as the majority of the network's hash power adopts the new rules, causing the non-upgraded chain to be orphaned. Soft forks are often used for minor protocol tweaks, such as the introduction of new transaction types like Pay-to-Script-Hash (P2SH) in Bitcoin.

In contrast, a hard fork is a backward-incompatible change that creates a permanent split, resulting in two separate and distinct blockchains that share history up to the point of the fork. Nodes running the old software will reject blocks created under the new rules. This requires all nodes to upgrade to continue participating on the new chain. Hard forks are used for major protocol changes, such as increasing block size or altering core consensus algorithms. Notable examples include the Ethereum network splitting into Ethereum (ETH) and Ethereum Classic (ETC) after The DAO incident, and Bitcoin's creation of Bitcoin Cash (BCH).

Beyond technical upgrades, forks serve as a governance tool. A contentious hard fork often represents an irreconcilable philosophical or ideological split within a blockchain's community regarding its future direction. The resulting chains compete for users, developers, and hash power. Conversely, a planned hard fork is a coordinated upgrade agreed upon by the community in advance, such as Ethereum's multiple "network upgrades" (e.g., London, Berlin) which are scheduled to implement changes like EIP-1559.

For users and developers, forks have significant implications. They can create duplicate assets (e.g., holders of the original coin receive an equal amount of the new forked coin), introduce security risks if replay attacks are not mitigated, and fragment network effects. Understanding the type of fork—its compatibility, consensus requirements, and community support—is essential for navigating these events and assessing the stability and future of a blockchain protocol.

etymology
WORD ORIGIN

Etymology

The term 'fork' in blockchain technology is a direct metaphor from software development, describing a fundamental divergence in a protocol's codebase and history.

In software engineering, a fork occurs when developers copy a project's source code to start independent development on a new, distinct piece of software. This concept was directly adopted by blockchain communities to describe a situation where a cryptocurrency's existing code is copied and modified, creating a new, separate chain with a shared history. The metaphor is apt because, like the tines of a fork, the blockchain's transaction history (the handle) splits into two or more divergent paths (the tines), each following its own set of rules from the point of divergence onward.

The blockchain implementation of a fork is categorized by the nature of the split. A soft fork is a backward-compatible upgrade, where new rules are a subset of the old rules; non-upgraded nodes can still validate new blocks, seeing the chain as a single, continuous line. In contrast, a hard fork is a permanent divergence that creates a new chain incompatible with the old rules, requiring all nodes to upgrade to the new protocol. This fundamental technical distinction between soft and hard forks is central to understanding governance and upgrade mechanisms in decentralized networks.

Prominent historical examples illustrate the fork's role in blockchain evolution. The creation of Ethereum Classic from Ethereum in 2016 following The DAO hack is a canonical example of a contentious hard fork, resulting in two separate assets and communities. Similarly, Bitcoin's history includes both soft forks (like the Segregated Witness, or SegWit, upgrade) and hard forks that created alternative cryptocurrencies like Bitcoin Cash. These events are not merely technical but are deeply social and economic, representing disagreements over protocol direction, scaling solutions, or philosophical principles within a decentralized ecosystem.

The fork mechanism is, therefore, a core feature of blockchain's open-source and permissionless nature. It serves as the ultimate governance tool: when consensus cannot be reached within a community, factions can 'fork' the code and pursue their vision independently. This creates a competitive landscape of protocols and allows for experimentation and innovation, but it also carries risks of community fragmentation, brand dilution, and security concerns as hashrate or stake is split between the competing chains.

key-features
BLOCKCHAIN FORKS

Key Features

A fork is a change to a blockchain's protocol that creates a divergence in its transaction history. This section details the different types, their technical mechanisms, and real-world consequences.

01

Soft Fork

A backward-compatible upgrade where new rules are a subset of the old rules. Non-upgraded nodes still see new blocks as valid, though they may not fully understand them.

  • Mechanism: Tightens validation rules (e.g., reducing block size).
  • Example: Bitcoin's Segregated Witness (SegWit) upgrade.
  • Outcome: Creates a single, unified chain as long as a majority of hash power adopts the new rules.
02

Hard Fork

A non-backward-compatible upgrade that requires all nodes to update their software. Old nodes will reject blocks created by new nodes, creating a permanent split.

  • Mechanism: Introduces new rules that conflict with old ones (e.g., increasing block size, changing consensus algorithm).
  • Examples: Ethereum → Ethereum Classic (2016), Bitcoin → Bitcoin Cash (2017).
  • Outcome: Creates two separate, competing blockchains with a shared history up to the fork point.
03

Accidental Fork

A temporary divergence in the blockchain caused by a consensus failure, not a protocol change. This is a normal part of blockchain operation and is quickly resolved.

  • Mechanism: Occurs when two miners produce blocks at nearly the same time, creating competing valid chains.
  • Resolution: The network follows the longest chain rule (or highest cumulative difficulty). The shorter, orphaned chain is discarded.
  • Purpose: This mechanism is fundamental to achieving eventual consistency in a decentralized network.
04

Governance & Social Consensus

Forks are ultimately a social and political process. Code changes are simple; coordinating the network's participants is the true challenge.

  • Key Actors: Miners/Validators, Node Operators, Developers, Token Holders.
  • Process: Proposals (BIPs, EIPs), signaling, and activation thresholds.
  • Risk: Contentious hard forks can split communities and dilute network effects, as seen with Bitcoin Cash's subsequent splits.
05

Chain ID & Replay Protection

Critical technical considerations during a hard fork to prevent transaction replay attacks and ensure network separation.

  • Chain ID: A unique identifier (EIP-155) that cryptographically separates forked chains. Transactions signed for one chain are invalid on the other.
  • Replay Protection: A protocol change (e.g., adding a unique marker to transactions) that makes transactions invalid on the opposing chain.
  • Consequence: Lack of proper replay protection was a major issue in the 2016 Ethereum/ETC split.
06

Contentious vs. Planned Forks

Forks differ fundamentally in their intent and community alignment.

  • Planned/Protocol Upgrade: A coordinated, non-contentious improvement agreed upon by the core development community (e.g., Ethereum's London hard fork).
  • Contentious Fork: A divisive split where factions disagree on fundamental protocol direction, leading to a permanent chain split and the creation of a new asset (e.g., Bitcoin Cash).
  • Outcome: Planned forks strengthen the network; contentious forks often create competing ecosystems.
how-it-works
HOW IT WORKS

Fork

A fork is a fundamental mechanism in blockchain governance and development, describing a divergence in the protocol's rules that creates a new, separate chain.

In blockchain technology, a fork is a change to the network's protocol that results in a divergence from the existing chain. This occurs when the rules governing transaction or block validation are altered. Forks are categorized as either soft forks or hard forks. A soft fork is a backward-compatible upgrade, meaning nodes that haven't updated can still validate new blocks. A hard fork is a backward-incompatible change, creating a permanent split where the new chain operates under new rules and the old chain continues under the original rules. The most famous example is the 2016 Ethereum hard fork that created Ethereum (ETH) and Ethereum Classic (ETC).

The process is typically initiated through community consensus among developers, miners, and node operators. For a soft fork to succeed, a supermajority of the network's hash power must adopt the new rules, as the updated chain with stricter rules will become the canonical chain. For a hard fork, all nodes must upgrade to the new client software to remain on the same network; otherwise, they will be separated onto two distinct, incompatible chains. This makes hard forks inherently more contentious and require broader coordination, often serving as a mechanism for implementing major protocol upgrades or resolving fundamental disagreements.

Beyond protocol upgrades, forks are also a critical tool for blockchain innovation and experimentation. Developers can fork an existing blockchain's open-source codebase—like Bitcoin or Ethereum—to create an entirely new project with different parameters or features, such as Litecoin or Polygon. This is known as a code fork or project fork. In this context, the new chain does not share history with the original and starts its own independent network, distinct from the protocol-level forks that split an existing chain's history and state.

PROTOCOL UPGRADE TYPES

Hard Fork vs. Soft Fork

A comparison of the two primary methods for implementing changes to a blockchain's consensus rules, defined by their backward compatibility.

FeatureHard ForkSoft Fork

Backward Compatibility

Consensus Rule Change

Introduces new, non-backward-compatible rules

Tightens or redefines existing rules

Node Upgrade Requirement

Mandatory for all nodes to follow new chain

Only mining/validating nodes must upgrade to enforce new rules

Chain Split Risk

High (creates a permanent divergence if not universally adopted)

Low (if majority hash power enforces new rules)

Example

Ethereum London Upgrade (EIP-1559), Bitcoin Cash fork

Bitcoin SegWit activation, Bitcoin P2SH upgrade

Governance Implication

Often requires broad coordination and social consensus

Can be activated by miner signaling or other activation mechanisms

examples
HISTORICAL FORKS

Notable Examples

These are some of the most significant forks in blockchain history, demonstrating the different motivations and outcomes of network splits.

ecosystem-usage
FORK

Ecosystem Usage

A fork is a fundamental mechanism in blockchain governance, creating a divergence in the protocol's history or rules. This section details the different types of forks and their critical roles in network upgrades, security, and community governance.

01

Hard Fork

A hard fork is a permanent divergence from the previous version of a blockchain, creating two separate networks that are incompatible. Nodes that do not upgrade to the new rules cannot validate blocks on the forked chain. This is used for non-backward-compatible protocol changes, such as altering consensus rules or block size.

  • Examples: Bitcoin Cash (from Bitcoin), Ethereum (from The DAO hack), Ethereum Classic (the original chain).
  • Result: Creates a new, separate cryptocurrency and ledger.
02

Soft Fork

A soft fork is a backward-compatible upgrade to a blockchain protocol. Nodes that do not upgrade will still see new blocks as valid, as the new rules are a subset of the old ones. It tightens the rule set and is typically used for feature additions or minor rule changes.

  • Examples: Segregated Witness (SegWit) on Bitcoin, which was activated as a soft fork.
  • Key Characteristic: Maintains a single chain, as non-upgraded nodes follow the new chain (though they may not fully understand the new transaction types).
03

Chain Split & Reorg

A temporary chain split occurs when two miners produce blocks at similar times, creating competing branches. The network resolves this via the longest chain rule, where the branch with the most cumulative proof-of-work becomes the canonical chain. The shorter branch is orphaned. A reorganization (reorg) happens when a longer, competing chain is discovered, causing nodes to switch to it, potentially reversing recent transactions.

  • Mechanism: Core to Nakamoto consensus in Proof-of-Work.
  • Impact: Highlights the probabilistic nature of blockchain finality.
04

Governance & Contentious Forks

Forks are the ultimate tool for on-chain governance when consensus cannot be reached. A contentious hard fork represents a fundamental ideological or technical split in the community, leading to a permanent partition of the network, users, and economic value.

  • Driver: Disagreements on scaling, monetary policy, or core principles.
  • Outcome: The market determines the value and survival of each resulting chain (e.g., Bitcoin vs. Bitcoin Cash).
05

Codebase Fork

A codebase fork (or "project fork") occurs when developers copy and modify the open-source software of an existing blockchain to create a new, independent project with different parameters or features. This is distinct from a live network fork, as it starts a new genesis block.

  • Examples: Litecoin (forked from Bitcoin code), Polygon POS (forked from Go-Ethereum).
  • Purpose: Leverages proven code to bootstrap new networks with different goals (e.g., faster block times, different hashing algorithm).
security-considerations
FORK

Security Considerations

Forks, while fundamental to blockchain evolution, introduce critical security risks that developers and users must understand to protect assets and maintain network integrity.

01

Replay Attacks

A replay attack occurs when a transaction valid on one chain is maliciously or accidentally rebroadcast and executed on the forked chain. This can lead to unintended asset transfers. For example, a user who splits coins on a new chain may have their transaction replayed on the original chain, duplicating the action.

  • Mitigation: Networks implement replay protection, often via unique chain IDs or specific fork-specific rules.
  • User Action: After a contentious fork, users should move funds to a new address on one chain before transacting on the other.
02

Double-Spend Risk

In a chain split, the period of uncertainty before a dominant chain emerges creates a temporary double-spend vulnerability. Miners or validators can work on both chains, potentially confirming conflicting transactions.

  • Risk Window: The risk is highest before sufficient proof-of-work accumulates or finality is achieved on a proof-of-stake chain.
  • Best Practice: Exchanges and merchants typically require deep confirmations (e.g., 100+ blocks) before crediting funds after a major fork.
03

Smart Contract State Divergence

When a fork occurs, the state (balances, contract storage) of the two chains is identical at the fork block. However, subsequent transactions cause state divergence. This can have severe consequences:

  • Unexpected Logic: A contract's code may execute differently due to changes in EVM opcodes (e.g., EIP-150) or rely on an oracle whose data feed diverges.
  • Asset Mismatch: Tokens on the new chain may not have the same value or utility, and bridges may not support them, leading to trapped liquidity.
04

Validator/Miner Centralization

Contentious forks often result in a hash power or stake split, temporarily reducing the security of both resulting chains. A smaller set of validators is more vulnerable to 51% attacks.

  • Security Threshold: The chain with minority support becomes exponentially easier to attack.
  • Long-term Risk: If the fork fails to attract sufficient decentralized participation, it remains perpetually vulnerable to reorganization attacks, undermining its economic security.
05

Wallet & Infrastructure Confusion

Forks create operational hazards as infrastructure must correctly identify and separate chains. Wallet software, explorers, and nodes must be explicitly configured for the correct chain ID and consensus rules.

  • User Error: Sending assets to addresses on the wrong chain is a common, irreversible loss.
  • Infrastructure Attacks: Malicious actors may set up phishing nodes or RPC endpoints for the forked chain to steal private keys or misdirect transactions.
06

Governance & Social Attack Vectors

Forks are often preceded by intense social and political conflict within a community. This environment is ripe for exploitation:

  • Scam Coins: Fraudulent "airdrop" claims and imposter wallets appear to steal funds.
  • Misinformation: Bad actors spread confusion about replay protection, legitimate claim processes, and chain legitimacy to create panic-selling or insecure actions.
  • Supply Attacks: Malicious pre-mines or unfair token distributions on the new chain can be disguised as legitimate forks.
BLOCKCHAIN FORKS

Common Misconceptions

Clarifying the technical distinctions between different types of blockchain forks, from protocol upgrades to network splits.

A blockchain fork is a change to the network's protocol that creates an alternative chain, diverging from the original. It occurs when nodes adopt different consensus rules, often due to a software upgrade or a disagreement. Forks are categorized by their permanence and compatibility:

  • Soft Fork: A backward-compatible upgrade where new rules are a subset of old rules; non-upgraded nodes still see new blocks as valid (e.g., Bitcoin's SegWit).
  • Hard Fork: A non-backward-compatible upgrade requiring all nodes to update; the chain splits permanently if consensus isn't unanimous (e.g., Ethereum's London upgrade).
  • Chain Split: The permanent divergence resulting from a contentious hard fork where two separate networks persist (e.g., Ethereum and Ethereum Classic). Forks are a core mechanism for blockchain evolution and governance.
BLOCKCHAIN FORKS

Technical Details

A fork is a fundamental concept in blockchain governance and protocol evolution, representing a divergence in the network's transaction history or consensus rules.

A blockchain fork is a divergence in the network's transaction history or consensus rules, creating two separate paths from a common ancestor block. It occurs when nodes on a decentralized network disagree on the validity of new blocks, leading to a split. Forks are categorized as either soft forks (backward-compatible rule tightening) or hard forks (non-backward-compatible rule changes). They are a critical mechanism for protocol upgrades, resolving security incidents, or community-led initiatives to create new networks, such as the split that created Bitcoin Cash from Bitcoin.

FORK

Frequently Asked Questions

A fork in blockchain is a fundamental change to a network's protocol, creating a divergence in the chain's history. These events are critical for upgrades, resolving disputes, or creating new networks.

A blockchain fork is a change to a network's protocol rules that results in a divergence in the chain's transaction history. It occurs when the software running on nodes is updated, and the new rules are not backward-compatible with the old ones. This creates a permanent split, producing two separate chains that share a common history up to the point of the fork. Forks are categorized as either soft forks (backward-compatible) or hard forks (non-backward-compatible). They are essential mechanisms for implementing upgrades, fixing critical bugs, or resolving fundamental disagreements within a community, as seen with Ethereum's transition to proof-of-stake (The Merge) or the creation of Bitcoin Cash from Bitcoin.

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team
What is a Fork in Blockchain? | Chainscore Glossary | ChainScore Glossary