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

decode messages to wire message #4188

Merged

Conversation

kishansagathiya
Copy link
Contributor

collation protocol and validation protocol uses messages wrapped as wiremessage. So we had to adjust our decoder and handler functions according to that.

Apart from this I have also added message type to wire message struct. Since wire message could be collation message or validation message, I have chose to manually set this as a value instead of returning a hardcoded value.

Changes

Tests

go test -tags integration github.com/ChainSafe/gossamer

Issues

#4108

collation protocol and validation protocol uses messages wrapped as wiremessage.
So we had to adjust our decoder and handler functions according to that.

Apart from this I have also added message type to wire message struct. Since wire message
could be collation message or validation message, I have chose to manually set this as a value instead
of returning a hardcoded value.
Copy link
Member

@edwardmack edwardmack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed together in design meeting. Looks good.

Copy link
Member

@EclesioMeloJunior EclesioMeloJunior left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! just a small comment

@kishansagathiya kishansagathiya merged commit 8850115 into kishan/feat/network-bridge-rx Oct 2, 2024
21 of 22 checks passed
@kishansagathiya kishansagathiya deleted the kishan/fix/handle-wiremessage branch October 2, 2024 06:15
kishansagathiya added a commit that referenced this pull request Oct 4, 2024
- handled active leaves update message
- handled block finalized message
- relay network protocol messages
- handle view update message for receiver side of the network bridge #3864 
- decode messages to wire message (PR #4188), Fixes #4108
- handle our view change in collator protocol validator side (PR #4197), Issue #4156
- Handle network bridge messages (UpdateAuthorityIDs and NewGossipTopology) Fixes #3862 
- process network events for receiver side of network bridge Issue Fixes #3863 
-  process overseer signals for network bridge Fixes #3861
edwardmack added a commit that referenced this pull request Oct 4, 2024
statement distribution skeleton (#4169)

Statement Distribution subsystem is responsible for distributing signed statements that we have generated and forwarding statements generated by our peers.
This commit just introduces a skeleton for it.
- implements the subsystem interface
- registers the subsystem with overseer
- add the processMessage method with messages to be handled

Issue #3583

cleanup remove un-used code

add comments

regenerate mocks

feat(dot/parachain): receiver side of network bridge (#3955)

- handled active leaves update message
- handled block finalized message
- relay network protocol messages
- handle view update message for receiver side of the network bridge #3864
- decode messages to wire message (PR #4188), Fixes #4108
- handle our view change in collator protocol validator side (PR #4197), Issue #4156
- Handle network bridge messages (UpdateAuthorityIDs and NewGossipTopology) Fixes #3862
- process network events for receiver side of network bridge Issue Fixes #3863
-  process overseer signals for network bridge Fixes #3861
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.

4 participants