fix(testnet): add testnet seed nodes for peer discovery

Enable peer discovery on testnet by adding seed nodes and preserving vFixedSeeds. This ensures nodes can connect to the network during initial sync.
This commit is contained in:
2025-11-17 13:53:10 +01:00
parent 0e08faad30
commit 0ed21f2dc0
2 changed files with 5 additions and 3 deletions

View File

@@ -231,9 +231,10 @@ public:
assert(consensus.hashGenesisBlock == uint256S("0x000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943"));
assert(genesis.hashMerkleRoot == uint256S("0x4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"));
vFixedSeeds.clear();
vSeeds.clear();
// Note: vFixedSeeds is not cleared for testnet to allow peer discovery
vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_test, pnSeed6_test + ARRAYLEN(pnSeed6_test));
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,127);
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,115);

View File

@@ -16,6 +16,7 @@ static SeedSpec6 pnSeed6_main[] = {
};
static SeedSpec6 pnSeed6_test[] = {
{{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xbc,0xd8,0xca,0x87}, 12335}, // 188.216.202.135:12335
{{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x54,0xf7,0xa9,0xf8}, 12333}, // 84.247.169.248:12333
};
#endif // PALLADIUM_CHAINPARAMSSEEDS_H