官术网_书友最值得收藏!

Peer discovery

For a node to be part of the network, it needs to connect to some other nodes in the network so that it can broadcast transactions/blocks and listen to new transactions/blocks. A node doesn't need to connect to every node in the network; instead, a node connects to a few other nodes. And these nodes connect to a few other nodes. In this way, the whole network is connected to each other.

But how does a node find some other nodes in the network as there is no central server that everyone can connect to so as to exchange their information? Ethereum has its own node discovery protocol to solve this problem, which is based on the Kadelima protocol. In the node discovery protocol, we have special kind of nodes called Bootstrap nodes. Bootstrap nodes maintain a list of all nodes that are connected to them over a period of time. They don't hold the blockchain itself. When peers connect to the Ethereum network, they first connect to the Bootstrap nodes ,which share the lists of peers that have connected to them in the last predefined time period. The connecting peers then connect and synchronize with the peers.

There can be various Ethereum instances, that is, various networks, each having its own network ID. The two major Ethereum networks are mainnet and testnet. The mainnet one is the one whose ether is traded on exchanges, whereas testnet is used by developers to test. Until now, we have learned everything with regards to the mainnet blockchain.

Bootnode is the most popular implementation of an Ethereum Bootstrap node. If you want to host your own Bootstrap node, you can use bootnode.

主站蜘蛛池模板: 武清区| 新竹市| 绩溪县| 盐亭县| 高阳县| 邻水| 保德县| 凤城市| 宝鸡市| 饶河县| 乌审旗| 阜新| 孙吴县| 沐川县| 襄垣县| 华池县| 陈巴尔虎旗| 丰原市| 贺州市| 巴林右旗| 吴江市| 陆良县| 册亨县| 高要市| 林周县| 彰武县| 同仁县| 甘孜县| 尚志市| 且末县| 都安| 岗巴县| 溧阳市| 米林县| 阿图什市| 梁平县| 聂荣县| 冀州市| 安图县| 丹棱县| 石楼县|