Bitcoin Cores hidden database just shrank by 40 GB – if you know how to trigger it
Bitcoin Core has merged a redesign of its optional transaction index that cut about 40 GB from the database in one contributors mainnet test. Operators using -txindex retain their existing indexes through an upgrade; capturing the full saving requires recreating the database. Related Asset Bitcoin #1 BTC · $79,754.94 24-hour change: up 1.14% 24H Up 1.14% 7D Up 11.34% 30D Up 25.87% Pull request #35531, merged into Bitcoin Cores master branch on Aug. 15, reduced the authors rebuilt mainnet txindex from about 66 GB to 26 GB. The roughly 61% reduction is confined to this optional index. Bitcoins blockchain and the rest of a nodes data directory remain outside the measurement. Related Product Bitcoin Core An open source project which maintains and releases Bitcoin client software The code is merged upstream. Stable binaries follow a separate release process, and Bitcoin Cores release index leaves the first version containing the change unspecified. Operators will need the migration notes for the release that ships it. How the smaller index works Bitcoin Cores -txindex option maintains a database for retrieving transactions by their full transaction ID. The old format stored each 32-byte transaction ID as a database key alongside transaction disk-position data. The redesign stores a much shorter lookup key:









