- Building Blockchain Projects
- Narayan Prusty
- 281字
- 2021-07-02 23:45:15
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.
- 平臺經(jīng)濟
- 網(wǎng)上開店與創(chuàng)業(yè)
- 跨境電子商務(wù)實務(wù)
- 全能車手:淘寶天貓直通車推廣優(yōu)化技巧大全
- 電商運營與推廣:操作實戰(zhàn)+案例分析+策略技巧
- 網(wǎng)絡(luò)人的未來:移動互聯(lián)網(wǎng)和大數(shù)據(jù)時代的100個預(yù)言
- 新媒體視覺全攻略:文案視覺+圖片美工+數(shù)據(jù)思維+營銷推廣
- 直播營銷與運營:盈利模式+推廣技巧+經(jīng)典案例
- 電子商務(wù)管理
- 電子商務(wù)概論與案例分析(微課版)
- 體驗為王:世界知名零售企業(yè)開創(chuàng)移動互聯(lián)新時代
- 一本書讀懂O2O營銷
- 電子商務(wù)
- 互聯(lián)網(wǎng)+創(chuàng)業(yè)必讀
- 玩爆電商運營:運營管理+美工營銷+爆款引流+玩法轉(zhuǎn)型