How does a Kaspa node discover peers when it joins the network?
When a Kaspa node connects to a new peer, it immediately requests a list of network addresses so it can find more participants to connect to. Each peer keeps a local address database that holds up to 4,096 addresses. By default, the responding peer picks 1,000 of those addresses, shuffles them randomly, and sends them back. The shuffle is important: it means the requesting node receives a varied cross-section of known peers rather than the same fixed slice every time, which helps distribute knowledge of the network more evenly. For anyone running or integrating a Kaspa node, this tells you that peer discovery is decentralized and self-bootstrapping — a new node can rapidly build its own view of the network without relying on a central directory.