-
Notifications
You must be signed in to change notification settings - Fork 3
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
chore: update bindings version #317
Conversation
48d9c3d
to
7d59482
Compare
7d59482
to
0aec55b
Compare
d3db0b0
to
00db6ef
Compare
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.
did the rust binding deprecate filter protocol by 0.6.0?
Yes |
any updates on filter v2? |
Do we need it? |
arguably needed when a user wants to participate as a light client with limited load requirements. if v2 exists the filter protocol should have similar api if not the same, so it is better to include as we have the flow already. if v2 doesn't exist then it is fine to remove so we can proceed without memory leak |
Ok I will spend some time looking at whether it's trivial to include it and keep the current filter functionality |
b98d5a9
to
a126223
Compare
a126223
to
aa4ae1e
Compare
aa4ae1e
to
53eb639
Compare
29fafc5
to
7bf9f8c
Compare
@@ -456,9 +458,6 @@ impl GraphcastAgent { | |||
"Selected content topic from subscriptions" | |||
); | |||
|
|||
// Check network before sending a message | |||
self.network_check() |
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.
would you please briefly explain why this function is no longer called?
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 function is very slow now that we're using waku's discovery ENR, it takes about 250-300s each time and it blocks message sending, I opted into calling it every 5 minutes in the Radio itself
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.
depending on whether network connectivity should be handled by the sdk, we can later on refactor the function to make sure it doesn't take that long, but okay here
src/graphcast_agent/waku_handling.rs
Outdated
@@ -192,6 +182,8 @@ fn node_config( | |||
gossipsub_params: Some(gossipsub_params), | |||
dns4_domain_name: None, | |||
websocket_params: None, | |||
dns_discovery_urls: vec![], |
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.
should these 2 params be passed in from the radio since we have those configs iirc?
7bf9f8c
to
dfb06e6
Compare
dfb06e6
to
4d50b93
Compare
Updated waku bindings version and fixed conflicts. This update should fix the memory leak issue in the bindings, it also includes updates for deprecating the legacy filter protocol and moving to filter v2.