# Peers and seeds

> How Pearl nodes find peers: the three DNS seeds, which nodes the seeder lists, address gossip, and what a node says in the version handshake.

Source: https://pearlcodex.com/technical/networking/peers-and-seeds/ · Last updated: 2026-10-20 · Checked against Pearl's source code at v1.5.5

A node on its own is useless: it can’t hear about new blocks or share its own. It needs [peers](https://pearlcodex.com/glossary/#peer), other nodes it keeps a connection open with. But a brand-new node, just installed, doesn’t know the address of a single one.

The fix is the same as Bitcoin’s. A few well-known names, the [DNS seeds](https://pearlcodex.com/glossary/#dns-seed), answer with a list of working nodes. After the first connections, the node learns more addresses from its peers and never needs the seeds again.

## Try it

The live state of the network those peers keep in sync: tip height, difficulty and pace.

_Interactive: Pearl, right now. Try it on the page: <https://pearlcodex.com/technical/networking/peers-and-seeds/>_

## Which DNS seeds does Pearl use?

Three, built into pearld for mainnet:

- **DNS seed:** reef reef.seeder.pearlnetwork.net
- **DNS seed:** tide tide.seeder.pearlnetwork.net
- **DNS seed:** stream stream.seeder.pearlnetwork.net

A node looks these names up like any website. Instead of one server’s address, the answer is a handful of IP addresses of Pearl nodes. The node then connects to some of them on port 44108.

Testnet and testnet2 have their own seeds, under `seeder.testnet.pearlnetwork.net` and `seeder.testnet2.pearlnetwork.net`.

## Which nodes does a seed list?

Pearl’s seeder is a plugin for CoreDNS, a common DNS server, and it’s in Pearl’s repository. It crawls the network in the background and only lists a node that passes **every** check below. The rules are fixed in code, not configurable:

1. **It completes a handshake**

   The seeder connects and swaps version messages, as a real peer would.

2. **It speaks a recent enough protocol**

   At least the minimum protocol version, 2.

3. **It's a full node**

   It advertises the full-node service bits.

4. **It's on the current chain**

   It reports a height at or above the latest checkpoint, which, in the README’s words, “weeds out nodes stranded on a pre-fork chain”.

5. **It listens on the default port**

   44108 on mainnet.

Each crawl re-checks the nodes it serves, asks live peers for more addresses with `getaddr`, and checks those too. A served node that fails two crawls in a row stops being listed and enters a three-hour cooldown.

A DNS answer holds a random sample of **up to 25** addresses, and resolvers may cache it for **3,600 seconds**, an hour.

> **Note: Why check the height?**
>
> Pearl has had two hard forks. A node that never upgraded across one is still running, still answering, but on a dead chain that stopped at the fork. Its height can’t pass the checkpoints beyond the fork, so the seeder quietly leaves it out, and newcomers aren’t sent there.

## What happens after the seeds?

Address gossip, inherited from Bitcoin via btcd:

- A node asks its peers for addresses with `getaddr`.
- Peers answer with `addr` messages, or `addrv2` (BIP-155) once both sides have said `sendaddrv2`; `addrv2` can carry newer address types.
- The node keeps everything in an address book on disk and picks future peers from it.

So the seeds matter once, at first start. A node that has run for a while can rejoin the network from its address book alone.

## What does a node say about itself?

When two nodes connect, after encrypting the connection, each sends a [`version` message](https://pearlcodex.com/glossary/#version-handshake). Three fields matter here:

| Field            | Size   | Description                                                                                                                                                                        |
| ---------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Protocol version | 4      | **2**. pearld refuses peers below 2. Pearl numbers its protocol from scratch; Bitcoin’s is in the 70,000s.                                                                         |
| Services         | 8      | **0xc4d** by default: full blocks, bloom filters, witnesses, compact filters, recent blocks, encrypted transport. See [nodes](https://pearlcodex.com/technical/networking/nodes/). |
| User agent       | varies | **/pearlwire:0.5.0/pearld:1.5.5/**: the wire library’s version, then the node’s. Informational only.                                                                               |

The [user agent](https://pearlcodex.com/glossary/#user-agent) is the same one Pearl’s public Blockbook reports for its own backend node, so you can see which software the explorer runs. The [protocol version](https://pearlcodex.com/glossary/#protocol-version) and [services](https://pearlcodex.com/glossary/#service-flags) are what a peer actually relies on.

**Make a guess:** You run pearld behind a firewall and only open port 44107. Will DNS seeds ever list your node?

**Answer:** No.

44107 is pearld’s local RPC port. Peers connect on 44108, and the seeder only lists nodes that accept connections on that default P2P port. Your node can still make outgoing connections and stay in sync; it just won’t be handed out to newcomers.

> **Pearl vs Bitcoin**
>
> The mechanism is Bitcoin’s: DNS seeds to start, then `getaddr` and `addr`/`addrv2` gossip. The details differ. Pearl’s seeds are three names under `pearlnetwork.net`, run by an open-source CoreDNS plugin that lists only verified full nodes on the default port that have reached the latest checkpoint. Pearl’s protocol version is 2, and every node advertises encrypted transport (`NODE_P2P_V2`) by default, because it is the only transport Pearl speaks.

**Code: seeds and handshake values**

The seeds, from [`params.go`](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/chaincfg/params.go#L344-L349). The `false` means the seeder doesn’t support filtering by service bits in the DNS name:

`node/chaincfg/params.go`

```go
DefaultPort: "44108",
DNSSeeds: []DNSSeed{
	{"reef.seeder.pearlnetwork.net", false},
	{"tide.seeder.pearlnetwork.net", false},
	{"stream.seeder.pearlnetwork.net", false},
},
```

The protocol version is set in [`protocol.go`](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/wire/protocol.go#L12-L16) and the minimum in [`peer.go`](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/peer/peer.go#L34-L44), whose comment explains why they move separately: raising both together “would disconnect not-yet-upgraded peers that still share our chain”.

## In short

- A peer is another node yours is connected to. A new node knows none, so it asks DNS seeds: reef., tide. and stream.seeder.pearlnetwork.net on mainnet.
- Pearl’s seeder crawls the network and only lists nodes that complete a handshake, offer full-node services, listen on port 44108 and report a height at or above the latest checkpoint.
- A DNS answer holds up to 25 addresses and may be cached for an hour. A node that fails re-checks twice in a row is dropped for three hours.
- After the seeds, nodes learn addresses from each other with getaddr and addr/addrv2 messages, as in Bitcoin.
- In the version handshake a node states its protocol version (2), services (0xc4d by default) and user agent (/pearlwire:0.5.0/pearld:1.5.5/).

## Read the code

- [Mainnet DNS seeds](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/chaincfg/params.go#L344-L349) `node/chaincfg/params.go:344-349`
- [Which nodes the seeder serves, and how](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/coredns-dnsseed/dnsseed/README.md#L13-L38) `coredns-dnsseed/dnsseed/README.md:13-38`
- [Default service flags (0xc4d)](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/server.go#L47-L50) `node/server.go:47-50`
- [Protocol version 2](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/wire/protocol.go#L12-L16) `node/wire/protocol.go:12-16`
- [Minimum accepted protocol version 2](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/peer/peer.go#L34-L44) `node/peer/peer.go:34-44`
- [The user agent](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/server.go#L100-L106) `node/server.go:100-106`

## Sources

### Pearl source

- [Pearl source code at v1.5.5](https://github.com/pearl-research-labs/pearl/tree/v1.5.5)

### Pearl docs

- [Pearl DNS seeder plugin README](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/coredns-dnsseed/dnsseed/README.md)

### Bitcoin standards

- [BIP-155: addrv2 message](https://github.com/bitcoin/bips/blob/master/bip-0155.mediawiki)

### Other

- [Bitcoin Developer Guide: peer discovery](https://developer.bitcoin.org/devguide/p2p_network.html#peer-discovery)
