Skip to content

Implement sending requests of request/response protocols in network bridge #4448

@haikoschol

Description

@haikoschol

Issue summary

The code that implements the parachain protocol uses an abstraction for communicating with the network via overseer messages called the network bridge. So far, it only supports gossip (aka notification) protocols. Some subsystems also need to use request/response protocols where messages are sent to a specific peer, which then sends a response back. Specifically sending out requests of certain request/response protocols and receiving the response from the peer.

Implementation details

There is a TODO in NetworkBridgeSender.processMessage() for adding the SendRequests message type. This type probably needs to include the network protocol to use, the peer to send the request to and the payload of the request.
The second part of the implementation covers routing the response back to the origin of the request via the overseer.

Other information and links

Acceptance criteria

  • New code is 60% covered with unit tests

Metadata

Metadata

Assignees

Labels

C-simpleMinor changes changes, no additional research needed. Good first issue/review.P-highthis should be addressed ASAP.S-networkissues related to the dot/network package.T-implementationthis issue/pr is a new feature or functionality.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions