Longest-Chain Fork Choice: Nakamoto Consensus Race
Interactive 3D simulator of Nakamoto consensus: an attacker chain races an honest chain block-by-block as independent Poisson mining processes, and the longest-chain fork-choice rule decides which branch survives — with live double-spend probability from Satoshi's closed-form formula.
Blockchains like Bitcoin resolve competing branches with a simple rule: nodes always accept the chain with the most accumulated proof-of-work. This simulator visualizes that fork-choice rule as a live race between an honest chain and an attacker chain, each growing block-by-block as an independent Poisson mining process weighted by hash-power share. Set the attacker's hash power and the number of confirmations a merchant waits for, then watch the two branches race in 3D — every time the attacker's branch reaches parity with the honest branch, a chain reorganization flips the network over to the new longest chain. A running tally compares the empirical reorg rate against Satoshi Nakamoto's exact closed-form double-spend probability, so you can see the security margin of "wait for N confirmations" emerge from first principles.
Watch an attacker chain race an honest chain block-by-block as two independent Poisson mining processes, with the longest-chain fork-choice rule deciding which branch survives and live double-spend probability from Nakamoto's closed-form formula.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install