Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 524 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 524 Bytes

mx-chain-go p2p components

The Messenger interface with its implementation are used to define the way to communicate between Multiversx nodes.

There are 2 ways to send data to the other peers:

  1. Broadcasting messages on a pubsub using topics;
  2. Direct sending messages to the connected peers.

The first type is used to send messages that has to reach every node (from corresponding shard, metachain, consensus group, etc.) and the second type is used to resolve requests coming from directly connected peers.