简体   繁体   中英

How does it the geth ethereum platform to automatically connect to the nodes that are in the main network of Ethereum?

我试图在专用网络中的几个节点之间建立连接,但是我使用定向enode进行连接,但是以太坊网络在不知道地址enode的情况下进行连接,我想知道使用哪种p2p通信协议,以便所有节点都是彼此通信,并且该代码是否免费。

  1. when start the geth your need some config enode to connect to
  2. by using the p2p network(kad) discover function, geth will discovery other nodes.the discover function can be disable by using --nodsicovery command line arg.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM