-
Notifications
You must be signed in to change notification settings - Fork 42
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
feat: check filter against lightPush, basic implementation #2185
feat: check filter against lightPush, basic implementation #2185
Conversation
@@ -56,6 +56,6 @@ export function messageHashStr( | |||
message: IProtoMessage | IDecodedMessage | |||
): string { | |||
const hash = messageHash(pubsubTopic, message); | |||
const hashStr = bytesToUtf8(hash); | |||
const hashStr = bytesToHex(hash); |
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.
this is fix for messageHashStr
when it doesn't transform bytes properly and shows weird symbols
This is temporary approach and should be revisited in #2075 |
size-limit report 📦
|
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.
I notice browser tests are failing now, unrelated to the PR though
I suppose there was an outage and wrong versions / configs were used lol
|
* feat: lighten retry logic for LightPush * update tests * remove base protocol sdk from light push, add unit tests for light push * remove replaced test * ensure numPeersToUse is respected * turn off check for missing messages * fix recurring ping * add useful logs * skip tests * remove comment * feat: check filter subscriptions against lightPush (#2185)
Problem
We observe some full nodes in the network that accept
subscription
request fromjs-waku
but do not push messages later.Solution
As mitigation for it implement basic handler for sending ephemeral message during subscription setup and check.
Notes