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
  1. TheBlueMatt commented at 12:14 AM on July 1, 2011: member

    As we have no testnet dnsseeds.

  2. jgarzik commented at 12:14 AM on July 1, 2011: contributor

    We should do this for hardcoded nodes as well?

  3. TheBlueMatt commented at 12:15 AM on July 1, 2011: member

    good point...

  4. 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)

  5. Only use dnsseeds and static seeds when not on testnet. ce8f78a7bb
  6. 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...

  7. TheBlueMatt commented at 3:34 PM on July 1, 2011: member

    It 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).

  8. jgarzik referenced this in commit b73ab2d885 on Jul 1, 2011
  9. jgarzik merged this on Jul 1, 2011
  10. jgarzik closed this on Jul 1, 2011

  11. zathras-crypto referenced this in commit da66fcbeb0 on May 3, 2016
  12. deadalnix referenced this in commit b2c676797c on Mar 25, 2017
  13. classesjack referenced this in commit 599943de63 on Jan 2, 2018
  14. rajarshimaitra referenced this in commit ef655c31a4 on Aug 5, 2021
  15. DrahtBot locked this on Sep 8, 2021

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 site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me