概述 eth 是 RLPx 传输协议,可促进 peer 之间的以太坊区块链信息交换。当前的协议版本是 eth/67。 这里分析 geth 中对于eth 协议说明的实现。 注册 eth 协议为 p2p 子协议 // New creates a new Ethereum object (including the // initialisation of the common Ethereum object) func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) { ... // Ensure configuration values are...