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

bug: Stopped filter node can receive messages #2178

Closed
AlejandroCabeza opened this issue Nov 1, 2023 · 1 comment
Closed

bug: Stopped filter node can receive messages #2178

AlejandroCabeza opened this issue Nov 1, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@AlejandroCabeza
Copy link
Contributor

Problem

A filter node can still receive messages after stop has been called.
Also, this is unconsistent with relay's behaviour, which doesn't behave the same way.

Impact

TBD

To reproduce

  1. Create two filter nodes, one will act as node and the other as server.
  2. Subscribe both to the same pubsub and content topics.
  3. Connect them.
  4. Stop the client node.
  5. Make the service node receive a message.
  6. Client node will still receive the message.

There's a test named "Filter Client can receive messages after subscribing and stopping without unsubscribing" in waku_filter_v2/test_waku_client.nim that reproduces this behaviour (the ability to receive messages while stopped).

You can also check the test case named "Relay can receive messages after subscribing and stopping without unsubscribing" in waku_relay/test_protocol.nim, that reproduces the same behaviour (but crashes, hence it's ignored), mimicking the filter behaviour.

Remember to rename tests from xasyncTest to asyncTest to unignore them.

Expected behavior

Unclear, not RFC dependent.
Naming suggests it shouldn't work, but it does.

nwaku version/commit hash

@AlejandroCabeza AlejandroCabeza added the bug Something isn't working label Nov 1, 2023
@AlejandroCabeza
Copy link
Contributor Author

According to this Discord Thread, this is intended behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

1 participant