Previous Module
Blockchain Explorer Simulation

🔀 When Blockchains Split: Understanding Forks

Learn what happens when two miners find blocks at the same time

🔀 Blockchain Forks & Reorganization

What happens when two miners create blocks at the same time? Or when the blockchain protocol needs to upgrade? Welcome to the world of forks and chain reorganizations!

🎯 What is a Fork?

A fork occurs when the blockchain splits into two or more competing chains. Think of it like a road diverging - suddenly there are multiple valid paths forward.

Key Concepts:
Chain Split: Multiple valid versions of blockchain history exist simultaneously
Competing Blocks: Different miners/validators produce blocks at similar times
Resolution: Network consensus determines which chain becomes the "truth"
Orphaned Blocks: Valid blocks that end up not part of the main chain

🎮 Interactive Fork Type Explorer

Click each fork type to understand what causes it:

Temporary Fork

Two miners find blocks simultaneously, creating competing chains that resolve quickly

Duration
Seconds to minutes
Resolution Method
Longest chain rule
Frequency
Very common

⚡ Why Forks Happen

⏱️
Network Delays

Two miners find valid blocks at nearly the same time. The network hasn't fully synchronized, creating temporary competing chains.

🔧
Protocol Upgrades

Developers introduce new rules or features. Nodes must upgrade software to follow new consensus rules.

💭
Community Disagreements

Major disputes about blockchain direction can cause permanent splits (like Ethereum/Ethereum Classic).

🐛
Bugs or Attacks

Software bugs or malicious attacks can cause unexpected forks that require emergency coordination.

🔍 The Longest Chain Rule

Bitcoin and most Proof-of-Work blockchains follow a simple principle: the longest valid chain wins.

How It Works:
1
Fork Occurs

Two valid blocks found at height 1000, creating Chain A and Chain B

2
Miners Continue

Some work on Chain A, others on Chain B. Next blocks (1001) built on each

3
One Chain Pulls Ahead

Chain A finds block 1002 first. It's now longer (1002 vs 1001)

4
Network Reorganizes

All nodes switch to Chain A. Chain B becomes orphaned history

💡 Why "Longest"?

Actually it's the chain with the most accumulated work (difficulty). "Longest" is shorthand - it's really "most computational effort invested."

📊 Real-World Fork Examples

⛓️
Bitcoin Cash (2017)

Type: Hard fork | Reason: Debate over block size limits. Created permanent split between BTC and BCH.

💎
Ethereum Classic (2016)

Type: Hard fork | Reason: Response to DAO hack. Split into ETH (rolled back) and ETC (immutable chain).

🔄
SegWit (2017)

Type: Soft fork | Reason: Bitcoin scaling improvement. Backward compatible - old nodes still worked.