mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-02-09 05:34:24 +00:00
Merge pull request #368 from TheBlueMatt/dnsseed
Only use dnsseeds when not on testnet.
This commit is contained in:
commit
b73ab2d885
@ -1146,6 +1146,8 @@ void DNSAddressSeed()
|
|||||||
{
|
{
|
||||||
int found = 0;
|
int found = 0;
|
||||||
|
|
||||||
|
if (!fTestNet)
|
||||||
|
{
|
||||||
printf("Loading addresses from DNS seeds (could take a while)\n");
|
printf("Loading addresses from DNS seeds (could take a while)\n");
|
||||||
|
|
||||||
for (int seed_idx = 0; seed_idx < ARRAYLEN(strDNSSeed); seed_idx++) {
|
for (int seed_idx = 0; seed_idx < ARRAYLEN(strDNSSeed); seed_idx++) {
|
||||||
@ -1163,6 +1165,7 @@ void DNSAddressSeed()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
printf("%d addresses found from DNS seeds\n", found);
|
printf("%d addresses found from DNS seeds\n", found);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user