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

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.

主站蜘蛛池模板: 南昌市| 吉林市| 武穴市| 察雅县| 鄯善县| 公主岭市| 洛浦县| 惠来县| 琼海市| 托克逊县| 石首市| 铁力市| 望江县| 榆社县| 叶城县| 龙山县| 昔阳县| 柯坪县| 高台县| 平顺县| 德州市| 航空| 普陀区| 石台县| 安福县| 高雄市| 遵化市| 阳泉市| 清苑县| 安多县| 五台县| 尚义县| 兴城市| 花莲市| 芒康县| 汽车| 康乐县| 蕲春县| 中卫市| 郧西县| 平谷区|