- 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.
- 電子商務(wù)案例分析
- 日進(jìn)3萬(wàn)3:微店這樣開(kāi)才賺錢(qián)
- 微商運(yùn)營(yíng)、營(yíng)銷(xiāo)、盈利直通車(chē)
- 移動(dòng)互聯(lián)決勝O2O
- 區(qū)塊鏈+醫(yī)療:新技術(shù)賦能醫(yī)療的應(yīng)用與未來(lái)
- PrestaShop Module Development
- 淘寶天貓美工實(shí)戰(zhàn)從入門(mén)到精通:圖像處理、寶貝拍攝、視頻制作、店鋪裝修一本就夠
- 跟陳志紅一起學(xué)阿里巴巴品牌建設(shè)
- 內(nèi)容電商運(yùn)營(yíng):從爆文到爆款
- 贏在云端:云計(jì)算與未來(lái)商機(jī)
- 電商運(yùn)營(yíng)實(shí)操
- 互聯(lián)網(wǎng)時(shí)代
- 生鮮電商的新零售之路
- 電子商務(wù)安全技術(shù)實(shí)用教程
- “微”戰(zhàn):找準(zhǔn)微信的根本獲利點(diǎn)