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

Fix Network trait implementation not doing what it's supposed to do #7985

Merged
1 commit merged into from
Jan 26, 2021

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Jan 26, 2021

The add_set_reserved and remove_set_reserved trait methods are supposed to add/remove nodes from the reserved nodes, to guarantee that a substream will be opened and closed.
They were mistakenly only adding/removing the peer from the list of nodes of the set. This means that add_set_reserved didn't guarantee that a substream was opened.

Fix #7983

@tomaka tomaka added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Jan 26, 2021
@tomaka tomaka requested review from romanb and mxinden January 26, 2021 12:11
@tomaka
Copy link
Contributor Author

tomaka commented Jan 26, 2021

bot merge

@ghost
Copy link

ghost commented Jan 26, 2021

Trying merge.

@ghost ghost merged commit bc3075c into paritytech:master Jan 26, 2021
@tomaka tomaka deleted the fix-gp-bug branch January 26, 2021 14:06
This pull request was closed.
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. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Grandpa notifications dropping to 0
3 participants