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

Node: p2p.Run not always subscribing to heartbeat channel when it should #4152

Conversation

bruce-riley
Copy link
Contributor

@bruce-riley bruce-riley commented Nov 4, 2024

The p2p.Run method is not subscribing to the channel topic if a client (such as the historical uptime monitor) subscribes to heartbeats via the guardian set state but not any other of the other events that use the control topic. This results in never seeing heartbeats.

I tested this by hacking the spy to subscribe to heartbeats using the guardian set state.

@bruce-riley bruce-riley force-pushed the node_p2p_run_not_always_subscribing_to_hb_when_it_should branch from 09ac0c1 to daf8d3a Compare November 4, 2024 21:16
@bruce-riley bruce-riley marked this pull request as ready for review November 4, 2024 21:19
Copy link
Contributor

@bingyuyap bingyuyap left a comment

Choose a reason for hiding this comment

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

lgtm!

@bruce-riley bruce-riley merged commit 7247a0f into wormhole-foundation:main Nov 5, 2024
23 of 24 checks passed
@bruce-riley bruce-riley deleted the node_p2p_run_not_always_subscribing_to_hb_when_it_should branch November 5, 2024 14:21
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