Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

client/finality-grandpa/src/observer: Poll NetworkBridge #4766

Merged
merged 1 commit into from
Jan 29, 2020

Conversation

mxinden
Copy link
Contributor

@mxinden mxinden commented Jan 29, 2020

Patch d4fbb89 reintegrated the periodic neighbor packet worker, by
moving its logic into a Future implementation on NetworkBridge which
needs to be polled by its upper layer.

Polling by the upper layer was implemented within the Future
implementation of the VoterWork struct but not within the Future
implementation of the ObserverWork struct. This patch adds polling of
the NetworkBridge to the latter.

Without this bugfix nodes running as a Grandpa Observer don't report
reputation changes to the underlying network and don't send neighbor
packets.

Patch d4fbb89 reintegrated the periodic neighbor packet worker, by
moving its logic into a `Future` implementation on `NetworkBridge` which
needs to be polled by its upper layer.

Polling by the upper layer was implemented within the `Future`
implementation of the `VoterWork` struct but not within the `Future`
implementation of the `ObserverWork` struct. This patch adds polling of
the `NetworkBridge` to the latter.
@mxinden mxinden added the A0-please_review Pull request needs code review. label Jan 29, 2020
Copy link
Contributor

@NikVolf NikVolf left a comment

Choose a reason for hiding this comment

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

Issue for the regression test for this? :)

@mxinden
Copy link
Contributor Author

mxinden commented Jan 30, 2020

Issue for the regression test for this? :)

Thanks for pushing for this @NikVolf . Regression test pull request: #4778

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants