Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/main.cpp
Show First 20 Lines • Show All 438 Lines • ▼ Show 20 Lines | do { | ||||
(unsigned long long)queries); | (unsigned long long)queries); | ||||
Sleep(1000); | Sleep(1000); | ||||
} while (1); | } while (1); | ||||
return nullptr; | return nullptr; | ||||
} | } | ||||
static const std::string mainnet_seeds[] = { | static const std::string mainnet_seeds[] = { | ||||
"seed.bitcoinabc.org", "seed-abc.bitcoinforks.org", "seed.bitprim.org", | "seed.bitcoinabc.org", "seed-abc.bitcoinforks.org", "seed.bitprim.org", | ||||
"seed.deadalnix.me", "seeder.criptolayer.net", ""}; | "seed.deadalnix.me", ""}; | ||||
static const std::string testnet_seeds[] = { | static const std::string testnet_seeds[] = { | ||||
"testnet-seed.bitcoinabc.org", "testnet-seed-abc.bitcoinforks.org", | "testnet-seed.bitcoinabc.org", "testnet-seed-abc.bitcoinforks.org", | ||||
"testnet-seed.bitprim.org", "testnet-seed.deadalnix.me", | "testnet-seed.bitprim.org", "testnet-seed.deadalnix.me", ""}; | ||||
"testnet-seeder.criptolayer.net", ""}; | |||||
static const std::string *seeds = mainnet_seeds; | static const std::string *seeds = mainnet_seeds; | ||||
const static unsigned int MAX_HOSTS_PER_SEED = 128; | const static unsigned int MAX_HOSTS_PER_SEED = 128; | ||||
extern "C" void *ThreadSeeder(void *) { | extern "C" void *ThreadSeeder(void *) { | ||||
do { | do { | ||||
for (int i = 0; seeds[i] != ""; i++) { | for (int i = 0; seeds[i] != ""; i++) { | ||||
std::vector<CNetAddr> ips; | std::vector<CNetAddr> ips; | ||||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |