Bitcoin Forum
May 21, 2024, 01:14:01 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: DNS Seeds  (Read 1716 times)
hoba (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
February 09, 2015, 04:27:57 PM
 #1

Hello,

I have looked into the bitcoin source code and a question arises:

Is the implementation of the dns seeds still correct? As far as I can see the dns seeds hard coded in chainparams.cpp are not used.
The function ThreadDNSAddressSeed in net.cpp seems to use them, but the invokation of
LookupHost - LookupIntern - SetSpecial or
CNetAddr -LookupHost - LookupIntern - SetSpecial
in netbase.cpp ends up with SetSpecial which handles Onion/Tor-addresses only. And the hard coded dns seeds are no Onion/Tor-addresses.
Am I right?
Would be glad if anyone confirm this or help me to find my mistake.

PS: Does the question fit better to the bitcoin mailing list?
vm1990
Legendary
*
Offline Offline

Activity: 1540
Merit: 1002



View Profile
February 10, 2015, 01:19:34 AM
 #2

as far as i know dns seed is only used the very very first time the wallet is used to find a new peer... most alt wallets screw this up and thats why they dont sync until you use addnode.

gmaxwell
Staff
Legendary
*
Offline Offline

Activity: 4186
Merit: 8421



View Profile WWW
March 19, 2015, 01:42:19 AM
 #3

They work fine.

2015-03-19 01:40:05 136 addresses found from DNS seeds


Setspecial returns false if the thing being checked is not an onion name and the rest of lookupintern runs normally.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!