feat(net): seed via the round-robin DNS record + node1/node5 (backwards-compatible)
Replace the wallet's stale hardcoded -addnode list (node. + node1-4.dragonx.is — a drifted subset with a bogus bare 'node.') with the daemon's authoritative vSeeds: seed.dragonx.is (a round-robin A record over the live seed set, so it self-updates without a wallet release) plus node1/node5 as static fallbacks. Applied in both seeding sites: the launch args (embedded_daemon.cpp) and the generated DRAGONX.conf (connection.cpp). Kept (not deleted) — pre-1.3.0 daemons had broken peer discovery and rely on these -addnode entries to find peers at all; plain hostname resolution works on every daemon version. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -205,11 +205,13 @@ std::vector<std::string> EmbeddedDaemon::getChainParams()
|
|||||||
"-ac_reward=300000000",
|
"-ac_reward=300000000",
|
||||||
"-ac_blocktime=36",
|
"-ac_blocktime=36",
|
||||||
"-ac_private=1",
|
"-ac_private=1",
|
||||||
"-addnode=node.dragonx.is",
|
// Seeds: seed.dragonx.is is a round-robin A record over the live seed set (self-updates without
|
||||||
|
// a wallet release), with node1/node5 as static fallbacks — mirrors the daemon's own vSeeds.
|
||||||
|
// Plain -addnode hostname resolution works on EVERY daemon version, and is load-bearing for
|
||||||
|
// pre-1.3.0 daemons whose built-in peer discovery was broken (they rely on these to find peers).
|
||||||
|
"-addnode=seed.dragonx.is",
|
||||||
"-addnode=node1.dragonx.is",
|
"-addnode=node1.dragonx.is",
|
||||||
"-addnode=node2.dragonx.is",
|
"-addnode=node5.dragonx.is",
|
||||||
"-addnode=node3.dragonx.is",
|
|
||||||
"-addnode=node4.dragonx.is",
|
|
||||||
"-experimentalfeatures",
|
"-experimentalfeatures",
|
||||||
"-developerencryptwallet",
|
"-developerencryptwallet",
|
||||||
// Create fresh wallets from a BIP39 mnemonic so their 24-word phrase can be
|
// Create fresh wallets from a BIP39 mnemonic so their 24-word phrase can be
|
||||||
|
|||||||
@@ -456,11 +456,11 @@ bool Connection::createDefaultConfig(const std::string& path)
|
|||||||
file << "exportdir=" << dataDir << "\n";
|
file << "exportdir=" << dataDir << "\n";
|
||||||
file << "experimentalfeatures=1\n";
|
file << "experimentalfeatures=1\n";
|
||||||
file << "developerencryptwallet=1\n";
|
file << "developerencryptwallet=1\n";
|
||||||
file << "addnode=node.dragonx.is\n";
|
// Round-robin DNS seed (self-updating) + static fallbacks; mirrors the daemon's vSeeds and keeps
|
||||||
|
// pre-1.3.0 daemons (broken peer discovery) able to find peers. Works on every daemon version.
|
||||||
|
file << "addnode=seed.dragonx.is\n";
|
||||||
file << "addnode=node1.dragonx.is\n";
|
file << "addnode=node1.dragonx.is\n";
|
||||||
file << "addnode=node2.dragonx.is\n";
|
file << "addnode=node5.dragonx.is\n";
|
||||||
file << "addnode=node3.dragonx.is\n";
|
|
||||||
file << "addnode=node4.dragonx.is\n";
|
|
||||||
|
|
||||||
file.close();
|
file.close();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user