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

fix: change message ID provider to match go-waku #1556

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

jm-clius
Copy link
Contributor

The existing messageIdProvider in nwaku uses Multihash format, while in go-waku straightforward sha256 hashes are used. This implies that message IDs (e.g. in the seen cache, in control messages, etc.) do not match between go-waku and nwaku, resulting in a lot of duplication and unnecessary control messages.

Since nwaku is more easily upgraded than go-waku, this quickfix changes nwaku message IDs to match those of go-waku.

A longer term solution is to specify a hashing scheme in an RFC.

Copy link
Contributor

@LNSD LNSD left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM ✅

@jm-clius jm-clius merged commit dd5243a into master Feb 13, 2023
@jm-clius jm-clius deleted the fix/message-id-match-go-waku branch February 13, 2023 16:22
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