5
1
If I understand correctly, when new bitcoin node wants to join the network, it must be introduced by guiding nodes -- DNS seeds. DNS seeds can thereafter help new node discover more existing nodes.
So during the bootstrap phase, DNS seeds are the entry points for the new nodes. By looking at the source code of BitcoinJ:
dnsSeeds = new String[] {
"seed.bitcoin.sipa.be", // Pieter Wuille
"dnsseed.bluematt.me", // Matt Corallo
"dnsseed.bitcoin.dashjr.org", // Luke Dashjr
"seed.bitcoinstats.com", // Chris Decker
"seed.bitnodes.io", // Addy Yeow
"bitseed.xf2.org", // Jeff Garzik
"seed.bitcoin.jonasschnelli.ch" // Jonas Schnelli
};
They are pretty much hard coded in the software. What if all of those DNS seeds are dishonest nodes? In this case, new nodes would be surrounded by dishonest nodes and it doesn't have chances to connect even one honest node and retrieve the genuine blockchain. Therefore, new nodes would be fooled in this case.
Does that mean bitcoin network still needs some extent of trust? And would it be a concern in reality?
1Your node would only be given out if you are accepting incoming connections. The DNS seeders also don't give out their full list of nodes, just some of them (10 or 20 I think). – Andrew Chow – 2017-07-06T16:47:31.047
@Penquin Thanks for the excellent answer. But who runs the checking, new comers' node or DNS seeds? If new comers run the checking, what kind of algorithm can be used to check the honesty? If the DNS seeds run the checking, how can new comers believe in the DNS seeds is actually running the checking? – Bo Ye – 2017-07-10T01:45:22.753
Regarding the IP brute-forcing of the who internet, it sounds a plausible method to connect to a honest node, but is it efficient enough? On average, how long does it take to connect to a node which actually can respond the bitcoin protocols? – Bo Ye – 2017-07-10T01:52:35.753
Nobody runs the checking, but you can if you want to but I haven't seen any source code available for it yet. Bruteforcing is a really terrible inefficient method to be honest. See the introduction of this paper, given a large size it takes a few thousand attempts
– Penquin – 2017-07-10T12:32:54.143@Penqin thanks for clarifying, that's very helpful! – Bo Ye – 2017-07-16T10:29:11.690