Bitcoin Forum
May 21, 2024, 11:10:27 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: exactly how does a node find its first connection  (Read 478 times)
calkob (OP)
Hero Member
*****
Offline Offline

Activity: 1092
Merit: 520


View Profile
March 11, 2016, 08:02:34 PM
 #1

Just wondering what is actually happening in the background as bitcoin core is searching for its first node, where is it looking? i know there is no central server that it connects to so how does it find that 1st one?
Quantus
Legendary
*
Offline Offline

Activity: 883
Merit: 1005



View Profile
March 11, 2016, 08:06:23 PM
 #2

The program comes with a list of large stable nodes
My understanding is the list is long and it includes very stable old nodes that hardly ever go down.

(I am a 1MB block supporter who thinks all users should be using Full-Node clients)
Avoid the XT shills, they only want to destroy bitcoin, their hubris and greed will destroy us.
Know your adversary https://www.youtube.com/watch?v=BKorP55Aqvg
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6642


Just writing some code


View Profile WWW
March 11, 2016, 08:20:44 PM
 #3

The program comes with a list of large stable nodes
My understanding is the list is long and it includes very stable old nodes that hardly ever go down.
Actually that is the last resort.

This is specific for Bitcoin Core, it may be different for other nodes.
First the node checks for its own list of peers that it has built. If it is a new node, that list won't exist.
Then it will check with several DNS seeds, servers which provide a list of nodes. Those DNS seeds are hard coded into the client.
If for some reason the DNS seeds aren't reachable, then it resorts to its own internal hard coded list of seed nodes. Those seed nodes are nodes which have had a super high uptime so it is likely that the node will be able to connect to those.

Quantus
Legendary
*
Offline Offline

Activity: 883
Merit: 1005



View Profile
March 11, 2016, 08:26:50 PM
 #4

cool I suspected the nodes listed in the client only relayed other known nodes and didn't bother with anything else; had to google DNS seed. Smiley

(I am a 1MB block supporter who thinks all users should be using Full-Node clients)
Avoid the XT shills, they only want to destroy bitcoin, their hubris and greed will destroy us.
Know your adversary https://www.youtube.com/watch?v=BKorP55Aqvg
calkob (OP)
Hero Member
*****
Offline Offline

Activity: 1092
Merit: 520


View Profile
March 11, 2016, 09:45:55 PM
 #5

Great info guys, thank you just what i was looking....... Grin
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!