-
Notifications
You must be signed in to change notification settings - Fork 224
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
Websocket client is unable to subscribe to vote events #1432
Comments
Thanks for the report! Sounds like the same issue as #1426 |
Let me try that, if it is I will close this issue since it's a duplicate. |
@romac so I tried the branch you linked in #1426 and didn't receive any vote events, however when I enable debug logging, it does seem the
I pushed a new branch to my codebase so this can be replicated https://github.com/rangesecurity/ctop/tree/debug/romac |
Ah sorry, it's actually a different problem. We do no have support for I can add support for those, will keep you posted. |
Can you give this branch a try and see if it works now? |
Does not seem to work 🤔 |
Perhaps this also needs #1433, I'll take a closer look. Might have to wait until next week unfortunately. But feel free to dig deeper in the meantime! |
I forked edit: I've isolated the issue to if let Some(pending_cmd) = self.pending_commands.remove(&id) {
self.respond_to_pending_command(pending_cmd, msg).await?;
} else {
panic!("failed to find pending command");
} which is causing my program to panic, so it seems that the removal of the pending command is not working |
What went wrong?
I'm unable to subscribe to events of type
Vote
when using WebsocketClient. I have tested against the rpc node using websocat, which correctly prints out votes. However I'm unable to achieve the same functionality usingtendermint_rpc
.Steps to reproduce
This is the code I have that acts as a wrapper around
WebsocketClient
https://github.com/rangesecurity/ctop/blob/main/ws_client/src/lib.rsTo test clone the repository locally:
Nothing gets printed to stdout, when the expected result are consensus votes being printed. For reference if I change this line to
"tm.event='NewBlock'"
I correctly receive events for new blocks.Definition of "done"
Able to subscribe to vote events ,as well as other custom events (NewRound, NewRoundStep)
The text was updated successfully, but these errors were encountered: