Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p2p: add custom messages #425

Merged
merged 13 commits into from Apr 24, 2020
Merged

p2p: add custom messages #425

merged 13 commits into from Apr 24, 2020

Conversation

p0lunin
Copy link
Contributor

@p0lunin p0lunin commented Apr 24, 2020

This adds a trait CustomMessage that allows composing custom protocol messages with the PeerMessage, while keeping the networking logic (connects/disconnects/routing/discovery) separate from the business logic (relaying transactions and blocks).

In the future PRs we will change CustomMessage to support a more useful trait for reading and writing per #424, rather than Bytes/BytesMut.

@oleganza oleganza merged commit 8cb43db into stellar:main Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants