Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: wsxdrfv on March 27, 2018, 05:12:55 AM



Title: strMainNetDNSSeed and pnSeed?
Post by: wsxdrfv on March 27, 2018, 05:12:55 AM
What has privilege?

If static const char *strMainNetDNSSeed[][2] = {
    {"xxxx.com", "175.111.22.333"},,,}

and there is
unsigned int pnSeed[] =
{   0x38a9b992, 0x73d4f3a2,,,,,,,,,,,,  }



Then what has privilege to other?

strMainNetDNSSeed  is applied first, and then if this is none or have problem to get IP address to connect,

then

pnSeed[]'s ip address will be applied?

or?


Title: Re: strMainNetDNSSeed and pnSeed?
Post by: achow101 on March 27, 2018, 04:41:57 PM
stdMainNetDNSSeed is the array of DNS seeders for the mainnet. DNS Seeders are used by Bitcoin Core on the first run to get nodes to connect to.

pnSeed is an array of fallback seed nodes that Bitcoin Core can connect to if it is unable to find nodes to connect to from its own database or from the DNS seeders.