Beginning Blockchain by Bikramaditya Singhal Gautam Dhameja & Priyansu Sekhar Panda
Author:Bikramaditya Singhal, Gautam Dhameja & Priyansu Sekhar Panda
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA
Step-2:
There is a new node, say, a seventh node that just showed up and is trying to join the existing Bitcoin network, but does not have any connection yet. Refer to Figure 3-11.
Figure 3-11A new node trying to join the network
Step-3:
The seventh node will try to reach out to as many nodes as it can either using DNS seeds or using the list of stable Bitcoin nodes in the list that it has—as shown in Figure 3-12.
Figure 3-12New Bitcoin node contacts some peers
In the diagram, we have skipped the DNS resolution part. It is the same as when you browse any website with its name and post DNS resolution the IP address is retrieved, which is then used as the destination webserver’s address to send TCP packets to. To connect to a new peer, the node establishes a TCP connection on port 8333 (port 8333 is well known for Bitcoins but could be different). Then the two nodes handshake with information such as version number, time, IP addresses, height of blockchain, etc. The actual Bitcoin code for “Version” message defined in net.cpp is as shown in the following:
PushMessage( "version", PROTOCOL_VERSION, nLocalServices, nTime, addrYou, addrMe,
nLocalHostNonce, FormatSubVersion(CLIENT_NAME, CLIENT_VERSION,
std::vector<string>()), nBestHeight, true );
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8310)
Test-Driven Development with Java by Alan Mellor(6832)
Data Augmentation with Python by Duc Haba(6752)
Principles of Data Fabric by Sonia Mezzetta(6493)
Learn Blender Simulations the Right Way by Stephen Pearson(6401)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(6265)
Hadoop in Practice by Alex Holmes(5966)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5816)
RPA Solution Architect's Handbook by Sachin Sahgal(5667)
Big Data Analysis with Python by Ivan Marin(5413)
The Infinite Retina by Robert Scoble Irena Cronin(5358)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5164)
Pretrain Vision and Large Language Models in Python by Emily Webber(4383)
Infrastructure as Code for Beginners by Russ McKendrick(4150)
Functional Programming in JavaScript by Mantyla Dan(4044)
The Age of Surveillance Capitalism by Shoshana Zuboff(3964)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3863)
Embracing Microservices Design by Ovais Mehboob Ahmed Khan Nabil Siddiqui and Timothy Oleson(3663)
Applied Machine Learning for Healthcare and Life Sciences Using AWS by Ujjwal Ratan(3641)
