DanS
dde6cd810f
net: seed from a round-robin DNS record instead of hardcoded hosts
...
seed.dragonx.is is now an A-record set over the five seed nodes (DNS-only, TTL 300,
created in Cloudflare alongside this change). One lookup returns all of them, and
the set can change -- a node added, a node retired -- with a DNS edit rather than a
release.
That is the actual point. Before this the network's entry points were hardcoded
into the binary twice over: here in vSeeds, and again in the -addnode injection in
hush_utils.h. Adding a sixth node meant shipping a new version and waiting for
users to upgrade.
node1 and node5 stay as static fallbacks against the round-robin record being
mistyped or deleted. They resolve to the same hosts, so that is insurance against a
DNS mistake rather than real redundancy.
Verified end to end on a fresh datadir (empty addrman, real node untouched, and
crucially with NO custom -port -- see below):
before: 0 addresses found from DNS seeds, 0 handshakes, 1 block (genesis)
after: 7 addresses found, connection attempts to all five seeds on :21768,
3 version handshakes, 3296 blocks connected and syncing
The earlier run of this test appeared to fail with 0 handshakes. That was the
harness, not the code: -port overrides ASSETCHAINS_P2PPORT, and net.cpp builds
DNS-seeded addresses as CAddress(CService(ip, ASSETCHAINS_P2PPORT)), so a test node
with a custom port dials every seeded peer on its own port and reaches nothing.
That is the mechanism behind the long-standing "never use a custom -port on a test
node" rule; use -listen=0 instead.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-08-26 00:22:56 +02:00
..
2026-03-19 09:30:50 -05:00
2026-03-19 09:30:50 -05:00
2024-02-27 23:59:59 +01:00
2026-07-06 01:57:18 -05:00
2026-08-23 06:39:38 +02:00
2026-07-08 05:48:39 +02:00
2026-03-19 09:30:50 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-03-03 17:28:49 -06:00
2023-12-04 05:10:48 +00:00
2026-08-25 06:04:43 +02:00
2024-03-15 15:16:04 -04:00
2024-10-01 10:49:13 -04:00
2020-10-21 07:28:10 -04:00
2024-02-27 23:59:59 +01:00
2025-12-30 16:38:42 -05:00
2024-02-27 23:59:59 +01:00
2020-10-21 07:28:10 -04:00
2024-02-27 23:59:59 +01:00
2026-08-25 19:18:30 +02:00
2024-02-27 23:59:59 +01:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2023-01-06 15:23:22 +00:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-07-21 14:13:31 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-08-25 19:18:30 +02:00
2026-08-25 19:18:30 +02:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2021-01-23 22:18:57 -05:00
2026-07-07 06:35:46 +02:00
2020-10-21 07:28:10 -04:00
2020-12-16 08:30:32 -05:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-08-21 19:15:56 -05:00
2026-08-26 00:22:56 +02:00
2026-06-30 16:42:37 -05:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2026-08-26 00:11:55 +02:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2018-12-31 21:41:05 -11:00
2024-02-27 23:59:59 +01:00
2026-08-21 19:15:56 -05:00
2026-08-25 21:52:51 +02:00
2024-02-27 23:59:59 +01:00
2024-09-24 09:35:20 -04:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-01-01 15:24:57 -05:00
2024-02-27 23:59:59 +01:00
2026-03-03 17:28:49 -06:00
2024-02-27 23:59:59 +01:00
2025-08-08 21:58:39 -04:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-01-01 15:24:57 -05:00
2024-02-27 23:59:59 +01:00
2026-07-14 11:21:28 -05:00
2024-02-27 23:59:59 +01:00
2024-10-01 10:49:13 -04:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-07-21 15:37:57 -05:00
2024-03-15 13:33:18 -04:00
2024-03-15 13:33:18 -04:00
2024-02-27 23:59:59 +01:00
2026-07-14 11:21:28 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-08-25 18:18:38 +02:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-07-06 01:57:18 -05:00
2026-08-23 06:23:09 +02:00
2026-08-23 06:23:09 +02:00
2026-03-19 09:30:50 -05:00
2024-02-27 23:59:59 +01:00
2026-08-21 19:15:56 -05:00
2026-07-14 11:21:28 -05:00
2026-08-21 02:06:09 -05:00
2026-07-06 01:57:18 -05:00
2024-02-27 23:59:59 +01:00
2026-06-28 16:58:31 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2021-08-09 17:40:35 -04:00
2026-08-26 00:11:55 +02:00
2025-12-30 02:37:40 -05:00
2026-03-05 05:22:44 -06:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-07-14 20:24:45 -05:00
2026-07-09 01:26:30 +02:00
2024-02-27 23:59:59 +01:00
2026-06-29 21:22:54 -05:00
2026-06-29 21:22:54 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-04-18 06:41:25 -07:00
2024-03-15 15:14:26 -04:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-28 11:38:07 -05:00
2024-02-28 11:39:22 -05:00
2024-02-27 23:59:59 +01:00
2024-09-27 22:40:46 +02:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-10-22 08:50:39 -04:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-03-19 09:30:50 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-06-30 16:42:37 -05:00
2026-07-09 06:59:25 +02:00
2026-07-09 09:01:06 +02:00
2026-07-09 09:01:06 +02:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-03-04 18:42:42 -06:00
2024-06-09 11:22:21 -04:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-07-08 05:48:39 +02:00
2024-02-27 23:59:59 +01:00
2026-03-04 18:42:42 -06:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00