Educational protocol analysis only; not investment, payment-acceptance or security advice. Confirmations reduce some reorganization risk under stated assumptions but do not guarantee finality, correct counterparties, valid off-chain facts, software integrity or asset value.
Direct answer
Nakamoto consensus is the Bitcoin-style process in which nodes independently enforce consensus validity, proof-of-work producers extend blocks without a permissioned membership list, blocks propagate through a peer-to-peer network and each node selects the valid branch with the most cumulative proof of work. It orders protocol-valid transactions under a node’s observed view; it does not make invalid transactions valid, establish truth outside the ledger or create immediate deterministic finality.
Validity comes before chain selection. A branch with an invalid header, proof of work, transaction, script, spent output, coinbase amount or block limit is rejected regardless of its claimed height or work. Among branches that pass the node’s rules and have available data, cumulative chainwork, not block count alone, determines the active chain. “Longest chain” is therefore an informal abbreviation for the valid chain representing the most proof-of-work effort.
The active tip is provisional. Competing valid blocks can temporarily give well-connected honest nodes different local views; additional work normally resolves the fork, and a node may disconnect one branch and connect another in a chain reorganization. A transaction’s confirmation count measures its depth in the observer’s current active chain. More depth can lower catch-up probability under a specified hashrate and network model, but no confirmation count is universally final.
The term describes more than hashing. Its security argument also depends on block and transaction validity, peer-to-peer propagation, honest adoption of the most-work valid chain, sufficient honest effective mining power, economic behavior and users independently observing the intended network and software. Common prefix, chain growth and chain quality are formal properties proved only within stated models; they are not unconditional facts about every deployed proof-of-work chain.
How to analyze Nakamoto consensus
- Fix identity and observation scope. Record
chain,network,genesis hash,client version, consensus-rule set, checkpoints or assume-valid settings, observer, peers and time. Capturebestblockhash,heightandchainwork; two nodes can honestly report different tips while messages are still propagating. - Validate before comparing work. Verify header linkage, timestamp constraints, decoded target, proof of work, Merkle and witness commitments, transactions, scripts, UTXO spends, coinbase and block resource limits. An
invalidbranch never becomes eligible merely by claiming more height or work. - Reconstruct the observed block tree. Link every candidate by previous-block hash to a known ancestor and distinguish complete blocks from headers. Reconcile
active,valid-fork,valid-headers,headers-onlyandinvalidstatuses from interfaces such asgetchaintipsrather than calling every visible tip a valid competing chain. - Recompute cumulative work. Decode each header’s
nBitstarget and calculate represented work with the implementation’s integer rules, conceptuallywork = floor(2^256 / (target + 1)). Sum work over ancestry and compare valid branches from their common ancestor; height, hash count estimates and pool labels are not substitutes for chainwork. - Trace selection and reorganization. Reproduce the node’s most-work candidate choice, equal-work local ordering and arrival state. If a better valid branch appears, identify the fork point, disconnect the old suffix, connect the new suffix, update the
UTXO setand reconcile transactions with themempooland application records. - Set a risk-based confirmation policy. Compute
confirmations = tip_height - block_height + 1only for a block on the current active chain. State value at risk, reversibility, attacker share, propagation, eclipse exposure, observed stale rate, confirmation depth and response plan; six is a convention, not a protocol finality threshold. - Stress the full security argument. Test partitions, latency, block withholding, selfish mining, eclipse attacks, pool and hardware concentration, sudden hashrate changes, fee and subsidy incentives, client divergence, deep reorganizations and recovery policy. Map conclusions to common prefix, chain growth, chain quality, persistence and liveness only under the cited model’s assumptions.
The result is an observer-specific, reproducible account of which valid history a node currently selects and why. Consensus rules define admissibility; proof of work makes alternative histories costly; propagation exposes work to other nodes; fork choice selects a current history; and confirmation policy determines when an application acts. Collapsing those layers into one “network approval” label hides the conditions that can fail.
Worked examples
1. Invalid work does not win
Suppose branch A reports valid_A = false and chainwork_A = 1,200 units, while branch B has valid_B = true and chainwork_B = 1,000 units. The node rejects A and selects B. Work is compared only among admissible candidates; proof of work cannot authorize an excessive coinbase, invalid signature or double spend.
If one observer has only A’s headers while another has A’s full block data, their statuses may differ until download and validation finish. A header-valid branch is not evidence that every transaction and state transition has passed full validation.
2. Height is not cumulative work
In a simplified variable-target example, branch C adds six blocks representing 100 work units each, or 6 * 100 = 600 units. Branch D adds five blocks representing 130 units each, or 5 * 130 = 650 units. If both are valid and share the same starting work, D is the most-work branch despite being one block shorter.
If two valid tips have exactly 650 units, equal work does not force every node to see the same tip immediately. Arrival and local implementation state can differ until another valid block makes one branch heavier. Do not describe a transient equal-work view as deterministic global finality.
3. Confirmations can be removed
A transaction included at block height 100 while the active tip is height 105 has tip_height - block_height + 1 = 105 - 100 + 1 = 6 confirmations. Suppose a valid alternative branch forks after height 99 and later becomes the most-work branch at height 106 without that transaction. Reorganization disconnects old blocks 100 through 105; the transaction no longer has six active-chain confirmations and may return to the mempool, conflict with another spend or remain absent.
Applications must reconcile block hash and ancestry, not merely store the number six. Exchange credit, delivered goods, bridge messages and derivative settlement can be economically irreversible even when the source-chain history is not.
4. Catch-up probability is model-dependent
In the Bitcoin whitepaper’s illustrative model, let the attacker’s hash fraction be q = 0.10, the honest fraction p = 0.90 and the honest lead z = 6. Its Poisson approximation gives lambda = z * (q / p) = 0.6666667 and P(catch up) = 0.0002428027 = 0.02428027%. At q = 0.30 and the same depth, the result rises to P(catch up) = 0.1321111687 = 13.21111687%.
These figures are not live Bitcoin guarantees. The calculation assumes stable independent hash trials and the model’s race conditions; it omits eclipse isolation, propagation advantage, selfish strategies, price and rental feedback, implementation bugs and application response. A policy should disclose its model and test worse conditions rather than quote six confirmations alone.
Risks and review failures
Protocol and measurement errors
- Comparing work before independently validating the header, block body and ancestry.
- Calling the highest or first-seen branch the winner without calculating cumulative chainwork.
- Using block count, nominal hashrate, pool share or explorer labels as a chainwork proxy.
- Mixing mainnet, testnet, signet, forks, client versions, checkpoints or genesis identities.
- Treating headers-only, unavailable or optimistic data as a fully validated block history.
- Ignoring target decoding, integer work arithmetic, previous-hash linkage or common ancestors.
- Reading one RPC or explorer as a global view without hash, height, time and peer context.
Network, incentive and control errors
- Assuming instantaneous propagation or identical transaction and block arrival order at every node.
- Treating an equal-work tie as one globally deterministic state rather than temporary local views.
- Ignoring stale blocks, latency, withholding, selfish mining and propagation advantage.
- Inferring independent miners from pool names or pool shares from physical hardware ownership.
- Ignoring pool, firmware, manufacturer, hosting, energy, geography and network concentration.
- Treating rewards as proof that honest extension is always every participant’s optimal strategy.
- Omitting eclipse, partition, Sybil, peer-poisoning, denial-of-service and time-manipulation exposure.
Settlement and security errors
- Calling a confirmation protocol finality or promising that six confirmations cannot be removed.
- Applying one confirmation count to every value, counterparty, reversibility and threat model.
- Converting the whitepaper probability example into a current measured attack probability.
- Saying majority hash power can forge signatures, seize arbitrary coins or validate inflation.
- Saying sub-majority hash power cannot profitably deviate or cause any reorganization or censorship.
- Equating a current most-work head with correct off-chain facts, lawful ownership or application settlement.
Common misconceptions
- The longest chain always has the most blocks. Bitcoin nodes select the valid chain with the most cumulative work; height alone can be an inadequate proxy when targets differ.
- Miners decide which protocol rules are valid. Miners propose blocks, while each full node independently enforces its configured consensus rules.
- Six confirmations create absolute finality. Six is an application convention; reorganization probability depends on the model, depth, adversary, propagation and observation integrity.
- A 51-percent attacker can spend anyone’s coins. Hash power can support reorganization, double-spend and censorship strategies, but does not supply another user’s private-key signature or make invalid inflation acceptable to unchanged full nodes.
- High total hashrate proves decentralization and safety. Effective control, network visibility, hardware access, pool coordination, client diversity, incentives and attack duration also matter.
Related topics
Sources
- Blockchain Technology Overview - NIST (accessed: 2026-08-19)
- Bitcoin: A Peer-to-Peer Electronic Cash System - Bitcoin.org (accessed: 2026-08-19)
- Bitcoin Developer Guide: Block Chain - Bitcoin Project (accessed: 2026-08-19)
- Bitcoin Core RPC: getchaintips - Bitcoin Project (accessed: 2026-08-19)
- Bitcoin Core: validation.cpp - Bitcoin Core (accessed: 2026-08-19)
- The Bitcoin Backbone Protocol: Analysis and Applications - IACR Cryptology ePrint Archive (accessed: 2026-08-19)
- Majority Is Not Enough: Bitcoin Mining Is Vulnerable - Cornell University (accessed: 2026-08-19)
- Eclipse Attacks on Bitcoin’s Peer-to-Peer Network - USENIX Association (accessed: 2026-08-19)