硬叉

当区块链网络发生重大且不向下兼容的变更时,就会发生硬分叉。这意味着网络中未升级到新版本软件的节点将无法验证根据新协议创建的区块或交易。

通常情况下,硬分叉的发生原因多种多样,例如实现新功能、修复安全漏洞或解决社区对网络发展方向的分歧。如果硬分叉的变更足够重大,则可能导致新加密货币的诞生。

比特币现金就是一个著名的硬分叉例子,它源于2017年比特币的一次分叉。这次分叉旨在提高交易容量并降低手续费。硬分叉后,原有的加密货币和新生成的加密货币可以继续独立存在,这往往会催生出不同的社区、功能和生态系统。

总体而言,硬分叉是区块链网络演进和治理中的重要过程,反映了发展和社区共识的动态本质。

A hard fork is a permanent, backward-incompatible change to a blockchain network’s consensus rules that causes the protocol to diverge into two separate paths — one following the old rules and one following the new rules. Unlike a soft fork, which remains compatible with older versions, a hard fork requires every node, 矿工和 验证器 on the network to upgrade their software to the new version. Any participants who do not upgrade will continue operating on the old chain, effectively creating two distinct blockchains that share an identical transaction history up to the block where the fork occurred.

Hard forks fall into two categories. Planned hard forks are pre-scheduled network upgrades agreed upon by the community, designed to introduce new features, improve performance, or fix vulnerabilities. Examples include Ethereum’s Constantinople, London, and The Merge. Contentious hard forks arise from fundamental disagreements about protocol direction. When consensus cannot be reached, one faction implements changes that split the network into two competing chains with separate communities, tokens, and governance. The most famous contentious hard fork is the Bitcoin Cash (BCH) split from Bitcoin (BTC) in August 2017.

When a hard fork occurs, every holder of the original cryptocurrency automatically receives an equivalent balance of the new forked coin at the moment of the split, because both chains share the same UTXO set or account state up to the fork block. This token duplication introduces risks such as replay attacks, where a transaction on one chain may be executed on the other if replay protection is not implemented.

Hard forks are a fundamental governance mechanism in decentralized networks. Because no central authority can mandate upgrades, the fork process allows communities to resolve disputes through market dynamics — users, miners, developers, and exchanges collectively choose which chain to support, and the market determines the relative value of each resulting token.

起源与历史

2010: The first Bitcoin hard fork was technically implemented by Satoshi Nakamoto in block 252,000, adding OP_NOP codes and modifying the scripting system. This early fork was uncontentious because Satoshi still had authoritative influence over the small community.

2013: 比特币基金会 developers discovered a consensus bug after an unintentional fork caused by differences between BerkeleyDB and LevelDB database backends. Miners coordinated to resolve the fork by reverting to the 0.7 chain.

2015(30年XNUMX月): Ethereum launched with a built-in governance model that anticipated regular hard forks for network upgrades. The Frontier release established Ethereum’s upgrade cadence that would produce multiple planned hard forks over the following years.

2016 (June-July): The DAO hack resulted in $60 million worth of ETH stolen from The DAO smart contract. The Ethereum community held a governance vote and decided to implement a hard fork at block 1,920,000 to reverse the theft. This contentious decision led to the creation of Ethereum Classic (ETC), maintained by those who opposed altering the blockchain’s immutable history.

2017(1 年 XNUMX 月): The Bitcoin block-size debate culminated in the 比特币现金(BCH) hard fork. Led by Roger Ver, Craig Wright, and Jihan Wu of Bitmain, BCH increased the block size from 1 MB to 8 MB. This was the most significant contentious fork in cryptocurrency history and ignited years of debate about Bitcoin’s scaling approach.

2017(十月24): 比特币黄金(BTG) forked from Bitcoin to change the mining algorithm from SHA-256 to Equihash, aiming to democratize mining by making it resistant to ASIC hardware.

2018(11月15): Bitcoin Cash itself underwent a contentious hard fork, splitting into Bitcoin Cash ABC (later retaining the BCH ticker) and Bitcoin SV (BSV), championed by Craig Wright who advocated for even larger block sizes and a return to what he claimed was Satoshi’s original protocol vision.

2019-2021: Ethereum executed a series of planned hard forks — Constantinople (February 2019), Istanbul (December 2019), Berlin (April 2021), and London (August 2021). The London hard fork was particularly significant as it introduced EIP-1559, fundamentally changing Ethereum’s fee market by burning a base fee, making ETH deflationary under certain network conditions.

2022年(15月XNUMX日): Ethereum completed The Merge, the most ambitious planned hard fork in blockchain history, transitioning the network from Proof of Work (PoW) to Proof of Stake (PoS). The PoW miners, unwilling to abandon their hardware investments, created Ethereum PoW (ETHW) as a contentious fork that continued the original mining chain.

2023-2026: Ethereum continued its planned hard fork roadmap with Shanghai/Capella (enabling staking withdrawals), Dencun (proto-danksharding for L2 cost reduction), and ongoing development toward Pectra and future sharding upgrades.

“A hard fork is the ultimate expression of decentralized governance. When a community cannot agree, the blockchain itself becomes the arbiter — both sides get to build their vision, and the market decides which one has value.”
以太坊联合创始人维塔利克·布特林

简单来说

  1. Imagine a highway that splits into two separate roads. Cars on the old road follow the original route, while cars on the new road follow a different path. Both roads are valid, but they lead to different destinations. A hard fork is when a blockchain road splits like this, and everyone must choose which path to follow.
  2. Think of a hard fork like a book club that disagrees on the rules. Half the members want to allow graphic novels, the other half wants to stick to traditional books only. Instead of fighting, they split into two separate clubs — each with its own rules, membership, and meeting schedule. Both clubs have the same history up to the split, but diverge from that point forward.
  3. It is similar to a software update on your phone that is so different from the previous version that old apps no longer work. Everyone must install the new version, or they are stuck on the old one. If enough people refuse to update, you essentially end up with two different phone ecosystems.
  4. Picture a recipe that gets modified. The original recipe makes chocolate cake, but a group of bakers decides to change it to red velvet. Everyone using the new recipe makes red velvet, while traditionalists stick with chocolate. Both cakes exist, and people choose which one they prefer — that choice determines each cake’s popularity and value.
  5. A hard fork is like a country changing its constitution. If not everyone agrees with the new laws, a group may secede and form their own nation with the old constitution. Both nations share the same history and culture up to the split, but govern themselves differently from that point on.

重要提示: Hard forks can be risky for cryptocurrency holders. Replay attacks may allow transactions on one chain to be duplicated on the other, potentially causing unintended loss of funds. Always ensure replay protection is in place, and avoid transacting during the immediate aftermath of a contentious fork until exchanges and 钱包 have confirmed support for both chains.

关键技术特征

Consensus Rule Changes

A hard fork modifies the fundamental consensus rules that determine block validity. These changes can include alterations to block size limits, transaction formats, opcodes, gas costs, mining or staking algorithms, reward structures, and state transition functions. Because old nodes reject blocks produced under new rules, the protocol permanently diverges at the fork block height.

How a Hard Fork Works

  1. A Bitcoin Improvement Proposal (BIP), Ethereum Improvement Proposal (EIP), or equivalent specification is drafted describing the proposed changes to consensus rules.
  2. The developer community reviews, debates, and refines the proposal through open-source governance processes on GitHub, forums, and social media.
  3. A fork activation block height or timestamp is agreed upon by the supporting faction. Node operators, miners/validators, and exchanges are notified of the upgrade timeline.
  4. New client software implementing the updated consensus rules is released and distributed. Node operators begin upgrading before the activation block.
  5. At the specified block height, the new rules take effect. Nodes running updated software produce and validate blocks under the new rules; nodes running old software reject these blocks and continue on the legacy chain.
  6. If the fork is contentious, two separate blockchains now exist. Each chain has its own miners/validators, token price, and community. Exchanges list both tokens, and holders receive balances on both chains.
  7. Replay protection mechanisms (such as unique chain IDs or modified transaction signatures) are implemented to prevent transactions on one chain from being replayed on the other.

Chain Split Mechanics

When a hard fork produces two chains, the UTXO set or account state is duplicated at the exact fork block. Every address that held tokens before the fork holds the same balance on both chains. The chains share identical block headers and transaction histories up to the fork point but diverge immediately after.

重播保护

Replay protection is a critical safety mechanism for contentious hard forks. Without it, a valid transaction signed on Chain A could be broadcast and confirmed on Chain B, causing users to inadvertently spend tokens on both chains. Strong replay protection uses unique chain IDs in transaction signatures (as introduced by EIP-155 for Ethereum), while weak or absent replay protection (as seen in early Bitcoin Cash transactions) creates significant risk for users.

Fork Choice Rules

When multiple competing chains exist, nodes use fork choice rules to determine which chain is canonical. In PoW systems, the longest chain (most accumulated proof of work) is typically preferred. In PoS systems, fork choice algorithms like LMD-GHOST (Latest Message-Driven Greediest Heaviest Observed Sub-Tree) are used to select the chain with the most validator support.

优点缺点

优势缺点
协议演化 — Enables blockchain networks to implement major upgrades, add new features, and fix critical vulnerabilities that cannot be achieved through soft forks社区科 — Contentious forks can permanently split communities, developers, and resources, weakening both resulting networks
分散治理 — Provides a mechanism for resolving fundamental disagreements without requiring a central authority to dictate outcomes重放攻击风险 — Without proper replay protection, users can lose funds on one chain when transacting on the other
Token Duplication — Holders receive equivalent balances on both chains, potentially increasing total portfolio value if both chains maintain market demandExchange and Wallet Disruption — Exchanges must pause deposits and withdrawals, wallets must update software, and services face operational complexity during fork transitions
Innovation Freedom — Allows different technical visions to be tested in production with real economic stakes, enabling evolutionary experimentation市场混乱 — Multiple forks of the same coin create confusion for investors (e.g., BTC, BCH, BSV, BTG all originating from Bitcoin)
安全改进 — Critical security patches and algorithm changes can be deployed through hard forks when backward compatibility is impossibleHash Rate and Validator Dilution — Mining power or validator stake is split across chains, potentially reducing security for both networks
Economic Policy Changes — Monetary policy adjustments (e.g., EIP-1559 fee burning, block reward changes) can only be implemented through hard forksDevelopment Resource Fragmentation — Developer talent and funding are divided between competing chains, slowing progress on both
Backward-Incompatible Optimization — Allows for fundamental architectural improvements that soft forks cannot achieve, such as changing the VM, state structure, or cryptographic primitives监管不确定性 — Forked tokens create tax ambiguity, securities classification questions, and compliance challenges for institutions
用户选择 — Gives every participant the freedom to choose which version of the protocol aligns with their values and economic interests空投诈骗 — Fork events attract fraudulent projects claiming to offer “free” forked tokens, targeting unsophisticated users with phishing attacks

风险管理

Pre-Fork Preparation: Before a hard fork, move assets off exchanges to a private wallet where you control the private keys. This ensures you will receive tokens on both chains. 五金钱包 (Ledger, Trezor) are strongly recommended for securing assets during fork events.

Replay Protection Verification: Confirm that the forked chain implements strong replay protection before making any transactions. Check official announcements from the fork’s development team and wait for exchange confirmations. If replay protection is absent, use coin-splitting techniques (sending tokens to yourself on each chain separately using chain-specific transactions).

Post-Fork Patience: Avoid transacting immediately after a contentious fork. Wait for confirmation from exchanges, wallet providers, and block explorers that both chains are stable, replay protection is functioning, and services have been updated to support both tokens.

Exchange Support Assessment: Not all exchanges will list forked tokens. Research which exchanges plan to support both chains before the fork. Coins held on exchanges that do not support the fork may result in losing access to tokens on one chain.

税务筹划: In many jurisdictions, receiving forked tokens is a taxable event. The cost basis of the forked token is typically its fair market value at the time of receipt. Consult a tax professional familiar with cryptocurrency to understand reporting obligations.

诈骗意识: Hard forks attract scammers who create fake wallets, fake exchanges, and phishing sites claiming to help users claim forked tokens. Only use official wallets and tools recommended by the legitimate fork development team. Never enter 私钥或种子短语 on any third-party website.

文化相关性

Hard forks have become one of the most powerful and controversial governance mechanisms in the cryptocurrency ecosystem, shaping the culture, politics, and philosophy of decentralized networks. The Bitcoin block-size war of 2015-2017, which culminated in the Bitcoin Cash hard fork, was a watershed moment that defined the ideological fault lines of the crypto community: small-blockers who prioritized decentralization and sovereignty versus big-blockers who prioritized transaction throughput and merchant adoption.

The Ethereum DAO fork of 2016 established a lasting cultural precedent about the relationship between code immutability and human governance. The decision to reverse the DAO hack by forking Ethereum challenged the “code is law” philosophy and demonstrated that social consensus could override technical outcomes. The existence of Ethereum Classic as a living monument to the immutability principle continues to influence how crypto communities think about governance and intervention.

In crypto trading culture, hard forks created the phenomenon of “fork trading” — buying a cryptocurrency before a fork to receive “free” tokens on the new chain, then selling one or both positions afterward. This speculative behavior has influenced market dynamics around every major fork event and spawned entire trading strategies.

Hard forks have also influenced DeFi governance. Many DAOs now include fork provisions in their governance frameworks, acknowledging that the ultimate recourse for irreconcilable disagreements is for minority factions to fork the protocol and compete in the open market. This “exit over voice” mechanism is considered a feature of decentralized governance.

The term “hard fork” has entered mainstream tech vocabulary, with journalists, policymakers, and technologists using it metaphorically to describe any major, backward-incompatible change in software, policy, or organizational structure.

实际例子

Example 1: The Ethereum DAO Hard Fork (2016)

场景: In June 2016, an attacker exploited a reentrancy vulnerability in The DAO smart contract and drained approximately 3.6 million ETH (worth roughly $60 million at the time). The DAO held approximately 14% of all circulating ETH, making this a systemic threat to the nascent Ethereum ecosystem.

实施: After weeks of intense community debate, a carbon vote, and miner signaling, the Ethereum core developers implemented a hard fork at block 1,920,000 on July 20, 2016. The fork moved the stolen ETH to a recovery contract, allowing DAO token holders to withdraw their funds. Nodes that rejected the fork continued operating as Ethereum Classic (ETC).

结果: Ethereum (ETH) retained the vast majority of developers, users, and market capitalization. Ethereum Classic (ETC) survived as a separate chain valued at approximately 5-10% of ETH’s market cap. The fork successfully recovered the stolen funds, but the event permanently shaped the crypto community’s understanding of governance, immutability, and the social layer of blockchain consensus.

Example 2: Bitcoin Cash Fork (August 2017)

场景: Years of debate over Bitcoin’s 1 MB block size limit reached an impasse. One faction (Core developers, small-blockers) favored Segregated Witness (SegWit) and Lightning Network for scaling, while another faction (big-blockers led by Roger Ver, Jihan Wu, Craig Wright) advocated increasing the block size to enable more on-chain transactions.

实施: On August 1, 2017, at block height 478,558, Bitcoin Cash (BCH) forked from Bitcoin with an 8 MB block size limit (later increased to 32 MB). Every BTC holder received an equivalent amount of BCH. The fork included strong replay protection through a modified transaction signature scheme.

结果: Bitcoin Cash initially traded at approximately $300 (about 10% of BTC’s price). BTC retained the dominant market position, ticker, and network effects. BCH itself later split into BCH (ABC) and BSV in November 2018 over further disagreements about block size and protocol direction. As of 2026, BTC remains the dominant chain by market capitalization, with BCH and BSV maintaining significantly smaller market shares.

Example 3: Ethereum London Hard Fork and EIP-1559 (August 2021)

场景: Ethereum’s gas fee auction system created unpredictable and often extreme transaction costs, with users frequently overpaying for block inclusion. The first-price auction mechanism was inefficient and created poor user experience, particularly during periods of high network demand.

实施: The London hard fork activated on August 5, 2021, at block 12,965,000. EIP-1559 introduced a dual-fee system with a protocol-determined base fee (burned rather than paid to miners) and an optional priority fee (tip to miners for faster inclusion). The base fee dynamically adjusted based on network congestion, targeting 50% block utilization.

结果: EIP-1559 dramatically improved fee predictability and user experience. The base fee burn mechanism introduced deflationary pressure on ETH supply — over 3.9 million ETH (worth billions of dollars) was burned in the first two years. This made ETH net-deflationary during periods of high usage after The Merge transition to PoS. The London fork is widely considered one of the most impactful planned hard forks in blockchain history.

Example 4: Ethereum’s The Merge (September 2022)

场景: Ethereum needed to transition from energy-intensive Proof of Work mining to Proof of Stake to reduce energy consumption by approximately 99.95%, improve scalability foundations, and prepare for future sharding upgrades. This was the most complex planned hard fork ever attempted on a live blockchain with hundreds of billions of dollars in value.

实施: On September 15, 2022, at TTD (Terminal Total Difficulty) 58750000000000000000000, the Ethereum execution layer merged with the Beacon Chain PoS consensus layer. The transition was smooth for users and applications — no downtime, no state changes, and no disruption to DeFi protocols or NFT marketplaces. Miners who objected created Ethereum PoW (ETHW) as a contentious fork.

结果: Ethereum’s energy consumption dropped by over 99.95% overnight. ETH staking became the primary consensus mechanism, with over 30 million ETH staked by 2026. The ETHW fork quickly lost relevance, trading at a fraction of a percent of ETH’s value. The Merge demonstrated that major blockchain networks can execute fundamental architectural changes through coordinated hard forks without disrupting the ecosystem.

对比表

特性硬叉软叉链迁移
向后兼容性Not backward compatible; old nodes cannot validate new blocksBackward compatible; old nodes still accept new blocks as validNot applicable; entirely new chain
Node Upgrade RequirementAll nodes must upgrade or risk operating on a legacy chainOnly miners/validators must upgrade; non-upgraded nodes still functionAll users must manually migrate assets to the new chain
链式分裂风险High — contentious hard forks always create two chainsLow — soft forks typically avoid chain splitsNo split; old chain is abandoned
功能范围Can introduce any change to consensus rules, including fundamental architectural modificationsLimited to rule-tightening changes that remain valid under old rulesUnlimited; entirely new protocol design
Token DuplicationYes — holders receive tokens on both chainsNo — only one chain and one token existsNo duplication; tokens must be bridged or swapped
例子Bitcoin Cash (BCH), Ethereum DAO fork, EIP-1559 London forkSegWit (BIP 141), BIP 66 strict DER signaturesTerra Classic to Terra 2.0, migration from ETH to L2s
治理复杂性Very high — requires broad community consensus or accepts contentious splitModerate — primarily requires miner/validator supportVery high — requires social consensus to abandon old chain

常见问题解答

What happens to my cryptocurrency when a hard fork occurs?

If you hold your cryptocurrency in a wallet where you control the private keys, you will automatically have tokens on both chains after a hard fork. Your balance is duplicated at the fork block because both chains share the same history up to that point. However, if your tokens are on an exchange, you depend on that exchange supporting the fork to receive the new tokens.

How is a hard fork different from a soft fork?

A hard fork is backward-incompatible — old nodes cannot validate new blocks, creating a permanent chain split if not everyone upgrades. A soft fork is backward-compatible — old nodes still accept new blocks as valid, though they may not understand the new features. Hard forks can implement any consensus change, while soft forks are limited to rule-tightening changes.

Are hard forks always contentious?

No. Most hard forks are planned, non-contentious network upgrades agreed upon by the community. Ethereum has executed over a dozen planned hard forks with minimal controversy. Contentious hard forks like Bitcoin Cash and Ethereum Classic are relatively rare but receive disproportionate media attention because of the drama and financial implications.

Can a hard fork be reversed?

Once a hard fork activates and blocks are produced on both chains, it is practically irreversible. The community would need to implement another hard fork to revert the changes, which would require the same level of social consensus as the original fork. In practice, contentious forks are permanent.

What is a replay attack and how do I protect against it?

A replay attack occurs when a transaction signed on one fork chain is valid on the other chain, causing your tokens to be spent on both chains unintentionally. To protect yourself, wait for confirmation that the fork implements replay protection (unique chain IDs), use coin-splitting services, and avoid transacting immediately after a contentious fork.

Do hard forks create free money?

While holders receive tokens on both chains, the combined market value typically does not exceed the pre-fork value of the original token by a significant amount long-term. Market dynamics usually result in the dominant chain retaining most of the value. Short-term arbitrage opportunities exist, but the “free money” narrative is oversimplified and comes with replay risks, tax liabilities, and the cost of managing assets on two chains.

How do miners and validators decide which chain to support after a contentious hard fork?

Miners and validators follow economic incentives. They allocate hash power or stake to whichever chain offers the most profitable returns, which is influenced by token price, transaction fees, block rewards, and long-term viability. Market pricing of both tokens on exchanges is the primary signal — miners gravitate toward the more valuable chain because block rewards are worth more.

本词汇表条目提供有关区块链技术的教育信息,并非投资建议。

检查你自己的数字

UEEx免费计算器可计算任何仓位规模的清算价格、保证金使用量和费用。

UEEx 周刊摘要

市场分析和安全警报,10,000 名交易员阅读