diff -uNr a/bitcoin/src/init.cpp b/bitcoin/src/init.cpp --- a/bitcoin/src/init.cpp a8b85aa6dba112f0e314bd86f737d2fef1206e4ad81b4c346c053d2bf3e4f36a1f5687dcd1321a0a7f3884db1fb31ffce69603afb78f7c4e1b5ca638840a4404 +++ b/bitcoin/src/init.cpp b7efbc0ce8eb70c04b3b0f713aa9dbeacf9dfe913be38d32ae83a9eb63024f752c4b98df5e019378e721a9b4c6a1e6466797caa1b0b80b4d672771dcfd8c5202 @@ -167,7 +167,6 @@ " -connect= \t\t " + _("Connect only to the specified node\n") + " -noirc \t " + _("Don't find peers using internet relay chat\n") + " -nolisten \t " + _("Don't accept connections from outside\n") + - " -nodnsseed \t " + _("Don't bootstrap list of peers using DNS\n") + " -banscore= \t " + _("Threshold for disconnecting misbehaving peers (default: 100)\n") + " -bantime= \t " + _("Number of seconds to keep misbehaving peers from reconnecting (default: 86400)\n") + " -maxreceivebuffer=\t " + _("Maximum per-connection receive buffer, *1000 bytes (default: 10000)\n") + @@ -415,7 +414,6 @@ // Note: the GetBoolArg() calls for all of these must happen later. SoftSetArg("-nolisten", true); SoftSetArg("-noirc", true); - SoftSetArg("-nodnsseed", true); SoftSetArg("-dns", false); } diff -uNr a/bitcoin/src/net.cpp b/bitcoin/src/net.cpp --- a/bitcoin/src/net.cpp c67fdd55e9d9d6b4973122b76729d7e83a456a8dc410f1c130cffbfd9f626c47ca7e8006bde912d9e0bd0a4b8457e895270d4a0efd22c4a199cd52ffd95b10dd +++ b/bitcoin/src/net.cpp 3ef738258288e826fa190f599e0dd1b655c6d90c17d97454fcb95324471f5098f692631ac552d6bf1f10d802db237de94952d91f426878fc85d03b78e073a45f @@ -19,7 +19,6 @@ void ThreadMessageHandler2(void* parg); void ThreadSocketHandler2(void* parg); void ThreadOpenConnections2(void* parg); -void ThreadDNSAddressSeed2(void* parg); bool OpenNetworkConnection(const CAddress& addrConnect); @@ -1067,92 +1066,6 @@ } - - - - - - - - - - - - - - - - - -static const char *strDNSSeed[] = { - "bitseed.xf2.org", - "dnsseed.bluematt.me", - "seed.bitcoin.sipa.be", - "dnsseed.bitcoin.dashjr.org", -}; - -void ThreadDNSAddressSeed(void* parg) -{ - IMPLEMENT_RANDOMIZE_STACK(ThreadDNSAddressSeed(parg)); - try - { - vnThreadsRunning[6]++; - ThreadDNSAddressSeed2(parg); - vnThreadsRunning[6]--; - } - catch (std::exception& e) { - vnThreadsRunning[6]--; - PrintException(&e, "ThreadDNSAddressSeed()"); - } catch (...) { - vnThreadsRunning[6]--; - throw; // support pthread_cancel() - } - printf("ThreadDNSAddressSeed exiting\n"); -} - -void ThreadDNSAddressSeed2(void* parg) -{ - printf("ThreadDNSAddressSeed started\n"); - int found = 0; - - if (!fTestNet) - { - printf("Loading addresses from DNS seeds (could take a while)\n"); - - for (int seed_idx = 0; seed_idx < ARRAYLEN(strDNSSeed); seed_idx++) { - vector vaddr; - if (Lookup(strDNSSeed[seed_idx], vaddr, NODE_NETWORK, -1, true)) - { - CAddrDB addrDB; - addrDB.TxnBegin(); - BOOST_FOREACH (CAddress& addr, vaddr) - { - if (addr.GetByte(3) != 127) - { - addr.nTime = 0; - AddAddress(addr, 0, &addrDB); - found++; - } - } - addrDB.TxnCommit(); // Save addresses (it's ok if this fails) - } - } - } - - printf("%d addresses found from DNS seeds\n", found); -} - - - - - - - - - - - - unsigned int pnSeed[] = { 0x959bd347, 0xf8de42b2, 0x73bc0518, 0xea6edc50, 0x21b00a4d, 0xc725b43d, 0xd665464d, 0x1a2a770e, @@ -1649,12 +1562,6 @@ // Start threads // - if (GetBoolArg("-nodnsseed")) - printf("DNS seeding disabled\n"); - else - if (!CreateThread(ThreadDNSAddressSeed, NULL)) - printf("Error: CreateThread(ThreadDNSAddressSeed) failed\n"); - // Get addresses from IRC and advertise ours if (!CreateThread(ThreadIRCSeed, NULL)) printf("Error: CreateThread(ThreadIRCSeed) failed\n"); @@ -1693,7 +1600,6 @@ if (vnThreadsRunning[2] > 0) printf("ThreadMessageHandler still running\n"); if (vnThreadsRunning[3] > 0) printf("ThreadBitcoinMiner still running\n"); if (vnThreadsRunning[4] > 0) printf("ThreadRPCServer still running\n"); - if (vnThreadsRunning[6] > 0) printf("ThreadDNSAddressSeed still running\n"); while (vnThreadsRunning[2] > 0 || vnThreadsRunning[4] > 0) Sleep(20); Sleep(50);