arXiv:2609.07609cs.NISep 2026

Manuscript Offprint

arXiv:2609.07609

How Bitcoin Forms Its Network: Peer-Table Sampling and Structural Properties

Taki E. M. Abedesselam, Antonio Cruciani, Fabio Giacomelli, Lucianna Kiffer, Francesco Pasquale

Taki E.M. Abedesselam¹,², Antonio Cruciani³, Fabio Giacomelli¹,², Lucianna Kiffer⁴, and Francesco Pasquale¹

¹ University of Rome “Tor Vergata”, Rome, Italy abedesselam@ing.uniroma2.it, fabio.giacomelli@uniroma2.it, pasquale@mat.uniroma2.it ² University of Camerino, Camerino, Italy ³ Aalto University, Espoo, Finland antonio.cruciani@aalto.fi ⁴ IMDEA Networks, Madrid, Spain lucianna.kiffer@networks.imdea.org

Abstract. The global structure of P2P networks underlying modern cryptocurrencies is hidden by design: each node only knows its neighbors and maintains a local peer table of IP addresses. The peer-table of a node can be seen as the node's “local view” of the set of nodes currently in the network: it is constantly updated with information collected from the neighbors and it is used by the node to establish new connections when needed. The maintenance rules of the nodes’ peer tables determine the global structure of the network and its evolution. Even though the global structure is unknown to any node of the network as well as to any external observer, the rules for the exchange of information between neighbors are compatible with the design and use of network crawlers that can query the nodes and extract some information about their peer tables.

In this paper we first analyze the data we crawled from nodes of the Bitcoin and Dogecoin P2P networks, to collect information about the distribution of IP addresses in the peer tables and to estimate the evolution of network size and churn rate; we then use the estimates to setup the parameters for a simulation of the Bitcoin network and we analyze the evolution of the network structure that we get from the simulation. Overall, our results show that Bitcoin’s peer-table maintenance rules induce non-uniform, heavy-tailed visibility patterns while nevertheless generating a well-connected and structurally robust network.

1 Introduction

Communication in modern cryptocurrencies is based on the distributed formation and maintenance of an unstructured P2P network. Cryptocurrencies like Bitcoin and derivatives rely on custom network-formation processes that are the product of several upgrades introduced during the years to face network-level attacks or discovered vulnerabilities [12, 19].

At the very core of these processes there is the following basic mechanism for peer discovery: when a node uu runs the software for the first time, it bootstraps by contacting one or more DNS seed servers whose addresses are hard-coded in the software. These DNS seeds return a list LL of “likely active” nodes and record the IP address of uu so that uu may be included in future responses to queries by other nodes;⁵ node uu initializes a local peer table MuM_u with nodes in LL and attempts to establish connections to them. Every time uu connects to a new node vv, it also asks vv for new nodes and includes the list of nodes sent by vv in its peer table MuM_u; node uu continues to attempt connections from peers chosen in MuM_u until it reaches a predetermined threshold for outgoing connections, while it may also accept incoming connections from other nodes up to a separate threshold. The main reasons for a node to maintain an updated peer table are (i) to enable the

⁵ Note that this initial bootstrap phase, in which a node uu relies on one or more DNS to discover some of the nodes in the network, can be avoided by uu if somehow the owner of the node is already aware of some other node already in the network.

node to establish new connections when its neighbor count drops below a predefined threshold and (ii) to supply newly joining nodes with the IP addresses of potential peers.

It is well-known that, if a node u in need of new neighbors could connect to a node v chosen uniformly at random among the nodes currently in the network, then the resulting evolving network would be almost always well-connected despite churn [21, 4]. However, keeping up-to-date information about all nodes is costly in terms of communication (a crawler must run continuously) and can only be done approximately: nodes that leave do not notify others, and new nodes are not discovered instantly. Moreover, the mechanisms for maintaining these peer tables have to be resilient to potential attacks, hence they are often complex and heuristically designed to hide as much information as possible while allowing the network to be stable and robust despite churn and possible malicious behaviors of some of the nodes. In particular, the global network structure is unknown to any node of the network as well as to any external observer and the peer-discovery process is designed so that the content of a node's peer table is never fully disclosed to other nodes, but can only be partially observed and inferred by collecting the addresses that the node reveals.