消息

规范的一种实现由许多组件构成。虽然这些组件中的许多部分都与具体实现相关,但 p2p 消息不是如此。在本节中,我们将介绍各个组件的所有 p2p 消息。 P2P 消息由两部分组成:消息和通道。通道是针对特定消息的,而消息则对应 CometBFT 的特定组件。当一个节点连接到对等节点时,它会告知对方哪些通道可用。这会通知对等节点,发起连接的节点提供哪些服务。你可以在 connection.md 中阅读有关通道的更多内容。

Messages

An implementation of the spec consists of many components. While many parts of these components are implementation specific, the p2p messages are not. In this section we will be covering all the p2p messages of components. There are two parts to the P2P messages, the message and the channel. The channel is message specific and messages are specific to components of CometBFT. When a node connect to a peer it will tell the other node which channels are available. This notifies the peer what services the connecting node offers. You can read more on channels in connection.md