BOMBARCHIVE
Explore

A living reference collection. Written in the wiki, preserved in Git.

The archiveBitcoin

BIP 159

BIP 159, authored by Jonas Schnelli, defines the NODE_NETWORK_LIMITED Bitcoin peer-service bit. It lets a node that has pruned old block files announce that it can still serve recent blocks without claiming to retain the complete historical block chain. The assigned date is 11 May 2017; Bitcoin Core began shipping signaling in February 2018 and support for connecting to limited peers in October 2018. Maintained specification · Bitcoin Core 0.16.0 release notes · Bitcoin Core 0.17.0 release notes

Before the service bit

Bitcoin Core 0.11.0 introduced block-file pruning. A node could validate blocks, update its unspent-transaction-output set and then discard older raw block and undo files while retaining block-header and block-index metadata. The release notes specified a minimum 550 MB block-file allocation, intended to keep at least 288 recent blocks. At that stage pruning disabled block relay and was incompatible with the built-in wallet. Bitcoin Core 0.11.0 release notes — contemporary first-party implementation account

Core 0.12.0, released on 23 February 2016, enabled wallet operation in pruned mode and allowed compatible peers to receive newly mined blocks from pruning nodes. But pruning still restricted historical rescans and raw-block access. Its release notes explicitly anticipated that retaining blocks could become useful for the wider network. Bitcoin Core 0.12.0 release notes · Release announcement

The existing NODE_NETWORK service flag indicated that a peer could serve the full chain history. A pruned node therefore faced an advertisement problem: it could help with recent blocks, but could not honestly claim the same historical coverage as an archival peer. BIP 159 supplied a narrower declaration. BIP 159

What BIP 159 specifies

NODE_NETWORK_LIMITED occupies bit 10, value 0x400 (1024). A peer advertising this service MUST be capable of serving at least the last 288 blocks. The document also recommends accounting for a 144-block safety buffer when selecting peers to cope with possible reorganizations. These are block-count requirements and heuristics, not promises of exactly 48 or 24 elapsed hours. Specification

Nodes that cannot serve complete history must not signal an unrestricted historical-block service such as NODE_NETWORK. Conversely, a node that can serve complete history may advertise NODE_NETWORK_LIMITED as well. Service bits describe abilities; they do not establish independent proof that a remote peer will fulfill a request. Maintained BIP, clarified in 2025

The BIP also asks peers to relay addresses advertising the limited service when those are peers they would themselves consider connecting to. That makes the distinction relevant to Bitcoin peer discovery: a candidate's address, service flags and actual reachable behavior are three different things. Address-relay section

Privacy and light-client limits

The BIP identifies an operator-privacy issue. If two pruned nodes retain different amounts of history and answer old-block requests all the way back to their individual limits, a requester could fingerprint their actual pruning depth. Its countermeasure recommends not serving blocks deeper than the common limited-service threshold. Countermeasures

A lightweight client that ignores advertised service flags may connect to a peer incapable of serving blocks it needs. For near-tip requests, a limited peer may be appropriate. For older blocks, a full-history peer or another verified retrieval path is needed. The flag does not itself supply SPV proofs, BIP 157 filters, BIP 37 Bloom-filter service, or an indexing API. Each is a separate capability or verification mechanism. Risks and capabilities

Development record

May–August 2017: proposal and an abandoned two-tier design

The BIP carries 11 May 2017 as its assigned date. On that same day Schnelli opened Bitcoin Core pull request #10387 to connect to limited-service peers once a node was no longer in initial block download and to accept their addresses into peer management. The maintained BIP file itself was added to bitcoin/bips on 7 August 2017. The assigned date and the repository addition are not one event. Original implementation proposal · First repository addition

There is a discarded design in the original text. The August version proposed two service classes: NODE_NETWORK_LIMITED_LOW for 288 blocks and NODE_NETWORK_LIMITED_HIGH for 1,152 blocks. Their simultaneous meaning was left undefined. The repository assigned bits 10 and 11 on 8 August, then removed the second service bit on 23 September 2017. The deployed protocol uses one bit, not the original LOW/HIGH pair. August two-bit draft · Single-bit revision

December 2017–October 2018: two implementation stages

A smaller Bitcoin Core change, #11740, was extracted from #10387 and merged on 9 December 2017. It added signaling only. The pull request explicitly said it did not add connections to limited peers. Bitcoin Core 0.16.0, released 26 February 2018, shipped this stage and repeated the limitation in its release notes. Original pull request and merge record · Contemporary release announcement · Release notes

The remaining #10387 merged on 1 March 2018. Its patch accepted limited-service peer addresses and connected to such peers after initial block download. Bitcoin Core 0.17.0, released on 3 October 2018, included #10387 under P2P protocol and network code. The original 0.17.0 source also checks limited-service status during the version handshake and limits old-block responses by the common service threshold. This is direct source and release evidence of the later stage, rather than a claim about how many nodes advertised the flag in 2018. Merge record · Versioned release notes, #10387 · Versioned implementation · Dated release notice

October 2018: a numerical error in the BIP

The specification already required serving 288 recent blocks, but its fingerprinting paragraph mistakenly referred to a threshold of 244. On 28 October 2018, commit 6c99f7a corrected that paragraph to 288. This was a documentation correction in the standards repository, not a new network threshold introduced that day. Exact one-line correction · Previous text

Later status and wording

On 17 July 2024 the BIP changed status from Draft to Final. In February 2025 the maintainers clarified that limited peers must not also claim full-history service and refined the fingerprinting and light-client text. On 12 January 2026 the BIPs repository renamed Final to Deployed in a broad terminology change. Those dates document editorial and administrative changes, not later first availability of the service bit in Bitcoin Core. Status revision · Wording revision · Status terminology

Why historical content retrieval cares

A Bitcoin node may validate the entire chain during synchronization and still discard old raw block files afterward. Serving recent blocks is therefore different from being able to retrieve the historic witness transaction that contains an inscription, an early Bitmap reveal, or the data required to independently check its witness commitment. A limited peer can participate in ordinary chain relay without serving as a complete historical content archive.

BIP 159 helps a client choose candidates appropriate to the age of the information it wants. It does not turn pruning nodes into Ordinals indexers or give them the ability to reconstruct data they no longer retain. The archival principle is simple: validation capability, advertised availability, actual stored content and retrievable evidence are different properties.

Open research

Open question
Recover dated mainnet measurements of NODE_NETWORK_LIMITED advertisement and connectivity, with sampling methods. GitHub merge and release records show software capability, not the proportion of reachable Bitcoin peers using it.
Open question
Compare current Bitcoin Core block-serving behavior and its pruning-depth privacy safeguards to the original 2018 implementation and BIP 159's recommended threshold, recording version-specific differences rather than assuming the early code remains unchanged.