Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Improve P2P protocol efficiency and consistency #1

Closed
33 tasks done
shuse2 opened this issue Nov 18, 2021 · 0 comments
Closed
33 tasks done

Improve P2P protocol efficiency and consistency #1

shuse2 opened this issue Nov 18, 2021 · 0 comments
Labels

Comments

@shuse2
Copy link
Collaborator

shuse2 commented Nov 18, 2021

Description

Define generic efficient message protocol to be consistent on all of the messages passed through the network using binary format.
Additionally, add missing P2P features to improve the infrastructure.

Motivation

  • Update the architecture to prevent incoming messages from affecting the on-chain processing
  • Implement missing critical P2P features
  • Remove unnecessary dependencies
  • Define the communication protocol format

Tasks

@shuse2 shuse2 transferred this issue from LiskArchive/lisk-sdk Oct 22, 2022
@shuse2 shuse2 added the epic label Oct 22, 2022
shuse2 pushed a commit that referenced this issue Nov 28, 2022
### What was the problem?

This PR resolves #6

### How was it solved?

- `libp2p` library was introduced
- peer is using `TCP` and `QUIC` as a transport protocol
- peer is able to send a message (currently only a `string`) to another
connected peer
- very simple and limited handling for a received message is implemented
- peer can ping another peer and receive a response from a pinged peer

### How was it tested?

- New unit tests were implemented.
- They were locally tested.

### Note

Majority of currently implemented functionalities have very basic
behavior and will be further extended within other issues in
[epic](#1). This
implementation serves as a starting point for a new P2P package.
@matjazv matjazv closed this as completed Apr 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants