Forks & Consensus
Resolving disagreements in a decentralized system.
The Consensus Race
Experience a real-time chain reorganization.
Click "Mine A" and "Mine B" to create a fork and watch the Longest Chain Rule in action.
Technical Briefing
A Fork occurs when the blockchain splits into two potential paths. This can happen accidentally (two miners find a block at once) or intentionally (to upgrade the protocol).
Nakamoto Consensus: The Longest Chain
Nodes use the Longest Chain Rule to decide which path is the "Truth." Specifically, they follow the chain with the most Accumulated Proof of Work. If you are on a shorter branch (an "Orphan" chain), your transactions will be reverted in a process called a Chain Reorganization.
Soft Fork
A backward-compatible upgrade. Old nodes still recognize new blocks as valid. It's a narrowing of the rules.
Hard Fork
A non-backward-compatible change. Old nodes reject new blocks. This results in two permanent, separate blockchains.
Probabilistic Settlement
Because forks can happen accidentally, engineers wait for Confirmations. The more blocks added to a chain, the less likely it is that a longer competing chain exists elsewhere, ensuring your transaction is permanently recorded.