BOMBARCHIVE
Explore

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

The archiveBitcoin

Old revision: BIP 155

Archive BIP 155 addrv2 design history and 2021 peer-gossip migration

BIP 155, addrv2 message, specifies an extension to Bitcoin peer-address gossip. It lets a node describe reachable endpoints on networks whose addresses do not fit into the legacy addr message's fixed 16-byte address field. It was assigned 27 February 2019 to Wladimir J. van der Laan as a Peer Services proposal. The original draft particularly addressed Tor v3 onion services and I2P. Original numbered draft — direct repository record · Maintained BIP — first-party specification

Why the original address format was too small

The legacy Bitcoin addr message represented a peer address in a fixed 128-bit field. This could carry IPv4 and IPv6 endpoints and older Tor v2 addresses encoded through an IPv6-shaped OnionCat representation. A Tor v3 onion service instead has a 256-bit public key used in its address. That cannot be represented faithfully in 128 bits. I2P presented a related length problem. BIP 155's solution was to identify the destination network explicitly and carry its address as a variable-length value. BIP 155, motivation and appendices

This is an address-distribution improvement. It does not make all announced endpoints reachable from every node: a node still needs transport access and suitable configuration to connect to an overlay network.

Wire format and compatibility

The maintained specification defines addrv2 with an entry containing:

  • time, a 32-bit Unix timestamp describing when a node was last seen connected;
  • services, a 64-bit service-bit field encoded with CompactSize;
  • networkID, a one-byte identifier for the network family;
  • addr, the address bytes, encoded at variable length;
  • port, a 16-bit network port.

Each addrv2 message may carry up to 1,000 addresses, and the specification sets a 512-byte maximum for an individual address field. The current network IDs include IPv4 (four address bytes), IPv6 (sixteen), Tor v3 (32), I2P (32), Cjdns (sixteen), and Yggdrasil (sixteen). The maintained text also retains a Tor v2 ID for historical encoding, while explicitly forbidding the gossip or relay of now-obsolete Tor v2 addresses. These are features of the maintained document and must not all be projected back onto the first 2019 draft. Current BIP 155, specification and changelog

A second message, sendaddrv2, signals that a peer understands and prefers receiving addrv2. Under the specified handshake, it must be sent '''after receiving the other peer's version and before sending verack**. A node that does not send it continues to receive legacy addr messages; new network address types are omitted when encoding for such older peers. This is negotiated representation, not a forced simultaneous migration of the whole network. BIP 155, signaling support

The published design changed during implementation

The historical repository is especially useful here. The original numbered 2019 draft already proposed the addrv2 extension, but its time and services fields were both described using a variable-integer representation. It did not yet contain the final sendaddrv2 compatibility handshake. Preserved 2019 draft

The BIP was revised during 2020. The recorded changes include a dedicated signaling message on 9 June, a fixed 32-bit timestamp and CompactSize service-field encoding in August, and a significant handshake correction on **7 December'''. Immediately before the December correction, the text still suggested sending sendaddrv2 after receiving verack. The 7 December revision instead made support signaling occur between version and verack, giving peers a clear point at which the absence of the signal could be interpreted. BIP change, 9 June 2020 · Time-field correction · Service-field correction · Handshake correction, 7 December 2020

2021: implementation and network transition

Bitcoin Core 0.21.0, announced on 14 January 2021, shipped support for Tor v3 onion services and their gossip over Bitcoin's peer network using BIP 155. Its release notes identify PR #19954 as the main implementation work. The same release changed automatically created onion services from Tor v2 to v3 and updated peers.dat storage, with a documented downgrade incompatibility for older clients reading that file. That is a concrete shipping boundary, not a claim that every Bitcoin node immediately supported the new address types. Official release announcement · First-party release notes · Implementation PR

The same 0.21.0 release introduced an anchors.dat mechanism to attempt reconnection to the previous two outbound block-relay-only peers after restart, mitigating a particular network-rotation/eclipse risk. That is peer continuity, not addrv2 address serialization, even though both belong in Bitcoin peer discovery. Bitcoin Core 0.21.0 release notes

Bitcoin Core 22.0, announced on 13 September 2021, added support for operating and connecting to I2P services. It also removed Tor v2 support: nodes stopped storing, relaying and using those obsolete addresses. This was a later implementation and network-support change, not a statement that I2P connectivity already shipped with 0.21.0 merely because the BIP could encode I2P addresses. Release announcement · Bitcoin Core 22.0 release notes

A living specification is not a frozen 2019 artifact

The canonical BIP currently bears version 2.1.1 and status Deployed. Its own changelog records a 1 October 2025 note on obsolete Tor v2, a 3 August 2026 rule disallowing IPv4-mapped addresses advertised as IPv6, and an 8 August 2026 addition of reference-implementation links. These later editorial and protocol clarifications belong to the versioned documentation history; none should be silently ascribed to van der Laan's 2019 draft. Maintained BIP and changelog

What the record proves

The source-controlled drafts establish a proposal and its revisions. Bitcoin Core's 2021 release notes and implementation PRs establish shipping software support. Neither proves that an address handed to a node was actually reachable, how widely each address type had propagated, or how many independent implementations interoperated at a particular date.

For a peer-discovery system, there are at least four separate questions: where the first peers came from, how new candidates were exchanged, whether the node could connect through the advertised network, and whether the node trusted the blocks received. BIP 155 changes chiefly the second layer. It neither solves all four nor pretends to.

Open research

Open question
Recover interoperability tests and dated deployment measurements for the first Tor v3 and I2P addrv2 peers; release notes prove support in software, not the percentage of the network that used it.
Open question
Trace the exact commits that introduced the Cjdns and Yggdrasil network IDs into the maintained BIP; the current network table lists them, but its short changelog does not assign each entry an original introduction date.

See also