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

(dot/parachain): handle view update message for receiver side of the network bridge #4249

Merged
merged 4 commits into from
Oct 17, 2024

Conversation

kishansagathiya
Copy link
Contributor

Changes

Over the network through collation and validation protocol, as part of WireMessage we could get a PeerMessage or a ViewUpdate.

ViewUpdate tells us about latest blocks (heads) and finalized number with our peers.

We are supposed to be update our peer data with these views.

This PR, reads ViewUpdate from both collation and validation protocol and handles them inside network bridge by updating our peer data. Later, it sends that view to other subsystems so that each subsystem can update their view too.

Tests

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

Issues

Fixes #3864

Over the network through collation and validation protocol, as part of WireMessage we could get a PeerMessage or a ViewUpdate.

ViewUpdate tells us about latest blocks (heads) and finalized number with our peers.

We are supposed to be update our peer data with these views.

This commit, reads ViewUpdate from both collation and validation protocol and handles them inside network bridge by updating our peer data. Later, it sends that view to other subsystems so that each subsystem can update their view too.

Fixes #3864
dot/parachain/network-bridge/receiver.go Outdated Show resolved Hide resolved
@kishansagathiya kishansagathiya merged commit 252dc13 into feat/parachain Oct 17, 2024
22 checks passed
@kishansagathiya kishansagathiya deleted the kishan/feat/network-bridge-view branch October 17, 2024 07:06
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.

3 participants