As we have no testnet dnsseeds.
Only use dnsseeds when not on testnet. #368
pull TheBlueMatt wants to merge 1 commits into bitcoin:master from TheBlueMatt:dnsseed changing 1 files +13 −10-
TheBlueMatt commented at 12:14 AM on July 1, 2011: member
-
jgarzik commented at 12:14 AM on July 1, 2011: contributor
We should do this for hardcoded nodes as well?
-
TheBlueMatt commented at 12:15 AM on July 1, 2011: member
good point...
-
gavinandresen commented at 3:12 PM on July 1, 2011: contributor
Seed nodes are already ignored on testnet: if (mapAddresses.empty() && (GetTime() - nStart > 60 || fTOR) && !fTestNet)
-
Only use dnsseeds and static seeds when not on testnet. ce8f78a7bb
-
in src/net.cpp:None in 284f01ae2e outdated
1146 | @@ -1147,17 +1147,20 @@ void DNSAddressSeed() 1147 | 1148 | printf("Loading addresses from DNS seeds (could take a while)\n");
gavinandresen commented at 3:12 PM on July 1, 2011:Move printf to inside if !fTestNet...
TheBlueMatt commented at 3:34 PM on July 1, 2011: memberIt would appear that I am blind, anyway, printf moved (I was thinking hopefully someone would do dnsseeds for testnet in the distant future, but that shouldnt mean I put the printf out of the if now).
jgarzik referenced this in commit b73ab2d885 on Jul 1, 2011jgarzik merged this on Jul 1, 2011jgarzik closed this on Jul 1, 2011zathras-crypto referenced this in commit da66fcbeb0 on May 3, 2016deadalnix referenced this in commit b2c676797c on Mar 25, 2017classesjack referenced this in commit 599943de63 on Jan 2, 2018rajarshimaitra referenced this in commit ef655c31a4 on Aug 5, 2021DrahtBot locked this on Sep 8, 2021Contributors
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-24 15:16 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-24 15:16 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me