-
Notifications
You must be signed in to change notification settings - Fork 809
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
Fix Message codec indexes #7437
Fix Message codec indexes #7437
Conversation
Nice catch here! I believe we are no longer using the message and the code seems to be forgotten during a refactoring. Instead, we rely on the protobuf encoding for networking messages. The message is annotated with polkadot-sdk/substrate/client/network/src/protocol/message.rs Lines 28 to 34 in 7971f95
External users from crates-io are not able to access this structure either:
I would opt for removing the entire cc @dmitry-markin Would you happen to know what's the story behind this enum? 🤔 |
Thank you @lexnv for the suggestion ! Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for catching this 🙏
d6aa157
Wasn't there a plan to delete the |
I may have pushed the button too fast, but if we can remove more unused code, let's continue in another PR |
Successfully created backport PR for |
Successfully created backport PR for |
Successfully created backport PR for |
Backport #7437 into `stable2407` from serban300. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Serban Iorga <serban@parity.io> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Backport #7437 into `stable2409` from serban300. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Co-authored-by: Serban Iorga <serban@parity.io>
Backport #7437 into `stable2412` from serban300. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Co-authored-by: Serban Iorga <serban@parity.io>
Fixes #7400