A hidden Bitcoin node database just shrank by 40 GB, but only if runners rebuild it
Bitcoin Core has merged a redesign of its optional transaction index that cut about 40 GB from the database in one contributor's mainnet test. Operators using -txindex retain their existing indexes through an upgrade; ca...
Archive context
Published in the last two hours. A tracked entity is involved.
Bitcoin Core has merged a redesign of its optional transaction index that cut about 40 GB from the database in one contributor's mainnet test. Operators using -txindex retain their existing indexes through an upgrade; capturing the full saving requires recreating the database.
Pull request #35531, merged into Bitcoin Core's master branch on Aug. 15, reduced the author's rebuilt mainnet txindex from about 66 GB to 26 GB. The roughly 61% reduction is confined to this optional index. Bitcoin's blockchain and the rest of a node's data directory remain outside the measurement.
The code is merged upstream. Stable binaries follow a separate release process, and Bitcoin Core's release index leaves the first version containing the change unspecified. Operators will need the migration notes for the release that ships it.
Related Reading Bitcoin Core considers dropping encrypted routing support as poor node health exposes users to eclipse attacks How the smaller index worksBitcoin Core's -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: a five-byte prefix derived from a salted SipHash, followed by a six-byte suffix encoding the block sequence and transaction offset. The full transaction ID is still checked before Bitcoin Core returns a match.
That verification step protects against collisions created by the shorter prefix. Bitcoin Core scans entries sharing the prefix, locates candidate blocks through its block index, reads the candidate transactions from disk and compares their full IDs. Bitcoin Optech's technical summary described collisions as extra read and verification work, with full-ID checks preventing false transaction matches.
Performance held steady in the author's test. Lookups took about 0.2 milliseconds. The mainnet rebuild finished in 1 hour 19 minutes versus 1 hour 50 minutes with the prior format. Hardware, storage, chain height and software version can all change those results.
Related Reading Bitcoin has 185 blocks left before BIP-110 rules begin rejecting blocksExisting txindex databases remain readable after an upgrade, avoiding an immediate forced rebuild. Their legacy entries also keep the larger footprint, so realizing the full 40 GB benchmark saving requires recreating the index.
A later downgrade carries a second migration cost. Bitcoin Core's merged release-note fragment says previous releases cannot read entries written in the compact format. Returning to an older release after rebuilding would trigger another txindex rebuild in the old format.
Related Reading Four unpatched bugs, a 5-year quantum clock, and a miner standoff are pushing Bitcoin to a critical crossroadThe operator payoff is substantial within its narrow scope: a much smaller optional index and a faster rebuild in the contributor's test. Capturing it requires planned recreation of the database, plus another rebuild if a rollback becomes necessary.
Release-specific notes should control the exact recreation and downgrade procedure once the change reaches a stable Bitcoin Core binary.
The post A hidden Bitcoin node database just shrank by 40 GB, but only if runners rebuild it appeared first on CryptoSlate.
Why this matters
Bitcoin is a tracked market entity in the DigitalMoneyBox archive, making this useful context for readers monitoring repeated mentions and follow-up coverage.
Original source
Read on CryptoSlateRelated market context
Bitcoin’s security risk starts when one block gets far more fees than the next
Bitcoin’s security-budget debate usually starts with one total: how much miners collect in transaction fees as the block subsidy s...
US bank lobby wants stablecoin holders to open an account before cashing out
The American Bankers Association is pressing US regulators to require anyone who buys or redeems a payment stablecoin directly wit...
40 malicious Firefox add-ons targeted crypto wallets, and 9 began as sports-score tools
Software supply-chain security firm Socket found 40 Firefox add-on identities with confirmed malicious behavior, including drainin...
Coinbase Exchange enables full trading for GRASS-USD pair
The GRASS-USD trading on Coinbase could enhance decentralized internet infrastructure, potentially democratizing AI model training...
Ngrave releases ZERO firmware 1.8, adds Polygon token support and open-source QR protocol
Ngrave's open-source QR protocol enhances transparency and security, potentially setting a new standard for hardware wallet commun...
Pump.fun adds HyperEVM support to its mobile app, becoming first to fully integrate Hyperliquid’s smart contract layer
Pump.fun's integration of HyperEVM could drive increased adoption and trading activity, but rising gas fees and security challenge...