The Ship of Theseus Bitcoin Core, 2009–2026
If every plank is replaced, is it still the same ship?
Bitcoin’s code has been rewritten line by line for 17 years. We asked the version history, release by release, how much of the code from Satoshi Nakamoto’s time is still in Bitcoin Core.
Bitcoin Core’s code, layer by layer
Each band is code last written in a pair of years. The orange layer is everything from 2009 and 2010, the years Satoshi Nakamoto was active. Watch it thin as new layers pile on top.
git blame of the Bitcoin Core repository.Satoshi’s planks: his code in Bitcoin Core
Two sets of lines can be dated to Satoshi’s time from the version history alone. The first commit of 30 August 2009 brought the code that already existed into version control on SourceForge. After that, Satoshi committed under the name s_nakamoto until December 2010.
The count peaked at 18,943 lines in version 0.4. Since then almost every one has been reformatted, renamed, moved or replaced.
1,747 lines remain, 487 of them in src/script/interpreter.cpp.
git blame still credits it to the first commit or to an s_nakamoto commit at that release. Hover a point for the share of all code.The last planks
Every line in version 32.0 that still traces back to Satoshi’s time, 954 of them with more than braces or blank space. Lines with an orange edge came from an s_nakamoto commit, the rest from the first commit. Each links to the line on GitHub.
src/script/interpreter.cpp487 lines
src/net.cpp208 lines
src/serialize.h186 lines
src/script/script.cpp166 lines
src/arith_uint256.h111 lines
src/validation.cpp95 lines
src/primitives/transaction.h52 lines
src/chain.h42 lines
src/test/sighash_tests.cpp40 lines
src/arith_uint256.cpp39 lines
src/script/script.h38 lines
src/net.h34 lines
src/uint256.h30 lines
src/primitives/transaction.cpp25 lines
src/net_processing.cpp24 lines
src/primitives/block.h16 lines
src/streams.h12 lines
src/consensus/tx_check.cpp11 lines
src/base58.cpp9 lines
src/wallet/db.h8 lines
src/node/blockstorage.cpp7 lines
src/script/interpreter.h6 lines
src/pow.cpp5 lines
src/common/system.cpp3 lines
src/support/allocators/secure.h3 lines
src/test/util/transaction_utils.cpp3 lines
src/wallet/walletdb.cpp3 lines
src/chain.cpp2 lines
src/init.h2 lines
src/node/miner.cpp2 lines
src/rpc/server.h2 lines
src/wallet/db.cpp2 lines
src/wallet/types.h2 lines
src/addresstype.cpp1 line
src/common/signmessage.cpp1 line
src/common/signmessage.h1 line
src/consensus/tx_verify.h1 line
src/httprpc.h1 line
src/httpserver.cpp1 line
src/httpserver.h1 line
src/index/coinstatsindex.cpp1 line
src/index/coinstatsindex.h1 line
src/index/db_key.h1 line
src/kernel/coinstats.cpp1 line
src/kernel/coinstats.h1 line
src/key_io.h1 line
src/merkleblock.h1 line
src/policy/rbf.cpp1 line
src/policy/rbf.h1 line
src/rest.cpp1 line
src/rest.h1 line
src/rpc/blockchain.cpp1 line
src/rpc/blockchain.h1 line
src/rpc/client.cpp1 line
src/rpc/client.h1 line
src/rpc/mempool.cpp1 line
src/rpc/mempool.h1 line
src/rpc/protocol.h1 line
src/rpc/rawtransaction_util.cpp1 line
src/rpc/request.cpp1 line
src/rpc/request.h1 line
src/rpc/util.cpp1 line
src/rpc/util.h1 line
src/script/verify_flags.h1 line
src/semaphore_grant.h1 line
src/test/fuzz/http_request.cpp1 line
src/test/httpserver_tests.cpp1 line
src/test/rest_tests.cpp1 line
src/test/util_check_tests.cpp1 line
src/util/check.cpp1 line
src/util/check.h1 line
src/util/hasher.h1 line
src/util/time.cpp1 line
src/wallet/rpc/addresses.cpp1 line
src/wallet/rpc/coins.cpp1 line
src/wallet/rpc/encrypt.cpp1 line
src/wallet/rpc/spend.cpp1 line
src/wallet/rpc/transactions.cpp1 line
src/wallet/rpc/wallet.cpp1 line
What was taken out
Some of Satoshi’s planks were not replaced but thrown overboard. Features that were once part of Bitcoin and are gone:
- 2010Feb 15, 2010
The marketplace
Version 0.2 shipped with unfinished code for products, reviews and a market. Satoshi Nakamoto removed it: “strip out unfinished product, review and market stuff”.
- 2010Aug 15, 2010
OP_CAT and other opcodes switched off
In a commit titled “misc changes”, Satoshi made any script that uses OP_CAT or 14 other opcodes fail, and cut the largest data push from 5,000 to 520 bytes. The opcodes stayed disabled; their code was deleted in 2013.
- 2011v0.5.0
The wxWidgets interface
Satoshi’s original desktop interface was replaced by the Qt interface that Bitcoin Core still uses.
- 2013v0.8.2
Finding peers through IRC
Early nodes found each other by joining an IRC channel. The code was removed in 2013, “now that lfnet is down”, the IRC network it relied on.
- 2016v0.13.0
The alert system
A signed-message system let a key holder broadcast warnings to every node. It was turned off by default in 0.12.1 and removed in 0.13.0.
- 2016v0.13.0
The built-in miner
The wallet could mine with the computer’s CPU (setgenerate). CPU mining had long stopped paying; the miner was removed.
- 2020v0.20.0
The payment protocol (BIP70)
Support for signed payment requests from merchants was fully removed.
Who wrote today’s code
By author name in the version history, the most lines in version 32.0. Line counts measure the last edit, not the effort or the importance of a change: a person who reformats a file is credited with every line they touched.
| Author (as in git) | Lines |
|---|---|
| Pieter Wuille | 46,853 |
| MarcoFalke | 22,037 |
| Wladimir J. van der Laan | 13,150 |
| Ava Chow | 10,440 |
| Andrew Chow | 10,419 |
| glozow | 9,296 |
| Russell Yanofsky | 8,818 |
| TheCharlatan | 8,130 |
Questions
How much of Satoshi Nakamoto's code is still in Bitcoin Core?
1,747 of the 310,672 lines of Bitcoin Core's own C++ code in version 32.0 (2026) still trace back to Satoshi's time: the first commit of August 2009 or a commit by s_nakamoto. That is 0.6% of the code; in version 0.2 it was 99%.
Is Bitcoin still the same software Satoshi wrote?
The rules are largely the same, the code mostly is not. Almost every line has been rewritten, reformatted, moved or replaced over the years, the way the planks of the ship of Theseus were replaced one by one. Signatures, proof of work, the block chain and the 21 million limit work as Satoshi designed them.
Who wrote most of today's Bitcoin Core code?
By author name in the version history, Pieter Wuille (46,853 lines), MarcoFalke (22,037 lines), Wladimir J. van der Laan (13,150 lines) are credited with the most lines in version 32.0. Line counts measure the last edit, not the importance of a change.
Which features from Satoshi's Bitcoin were removed?
Among others: the marketplace, OP_CAT and other opcodes switched off, the wxWidgets interface, finding peers through IRC, the alert system. Each one, with its date and source, is listed on this page.
How was the code counted?
With git blame -w -M -C at each release on Bitcoin Core's own C and C++ files, leaving out bundled libraries. Blame credits a line to the last commit that changed it, so the survival figures are a lower bound.
How we counted, and what it misses
The method
At each release we ran git blame -w -M -C on every C and C++ file of Bitcoin Core’s own code (the top level in early versions, then src/). Libraries kept in the tree, such as LevelDB, libsecp256k1 and UniValue, and generated interface code are left out.
Old code can look new
Blame credits a line to the last commit that changed it. A whitespace-only change is ignored and moved lines are followed, but a rename, a reformat or a split file can still make an old line look new. The survival figures are therefore a lower bound.
Names are commit names
Code Satoshi wrote but someone else committed counts under that person. The first commit holds all code written before 30 August 2009; “Satoshi’s time” here means that commit plus the s_nakamoto commits, nothing more.
Data: /data/theseus/strata.json (CC BY 4.0), computed from the Bitcoin Core repository (code under the MIT licence) up to v32.0 (465dde277447). First commit: e071a3f6c06f (SVN trunk r1). Related: Primary sources · Proof of history · Cryptography Lab.