November 2018
Intermediate to advanced
528 pages
13h 21m
English
Next, we'll need to remove the DNS seeds from the code. Bitcoin uses built-in DNS seeds, which are a list of host names for a DNS server to discover other nodes. A Bitcoin client issues DNS requests to learn about the addresses of other peer nodes, and, in response, the DNS seeds return a list of IP addresses of full nodes on the Bitcoin network to assist in peer discovery.
We'll need to remove or comment out the hardcoded seed nodes in the chainparams.cpp file. In this file, you'll find a vector of seed (vSeeds) to which they append a list of DNS URLs:
vSeeds.emplace_back("seed.bitcoin.sipa.be", true);
We need to comment out all occurrences of vSeeds.push_back and vSeeds.emplace_back in both CMainParams and CTestNetParams ...
Read now
Unlock full access