https://github.com/multiversx/mx-chain-p2p-go
mx-chain-go p2p components
https://github.com/multiversx/mx-chain-p2p-go
Last synced: 5 months ago
JSON representation
mx-chain-go p2p components
- Host: GitHub
- URL: https://github.com/multiversx/mx-chain-p2p-go
- Owner: multiversx
- License: gpl-3.0
- Created: 2022-09-16T09:57:41.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-11T16:29:22.000Z (over 2 years ago)
- Last Synced: 2024-04-01T15:08:36.882Z (about 2 years ago)
- Language: Go
- Homepage:
- Size: 11.4 MB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.