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

Provide heartbeat update subscription mechanism #1768

Assignees

Comments

@evan-gray
Copy link
Contributor

Expected Behavior

I would like to reuse the p2p component to be able to spy on guardian heartbeats. There should be some mechanism to receive an update via a channel akin to observations and VAAs.

Current Behavior

A NewGuardianSetState is passed into p2p and updated directly with heartbeats, without an opportunity to receive the heartbeat.

Possible Solution

The GuardianSetState could take an update channel as an argument and publish to the channel whenever the set is updated (SetHeartbeat)

Context (Environment)

Building an indexer for the wormhole ecosystem.
https://github.com/wormhole-foundation/wormhole-explorer/blob/main/fly/main.go#L110

@evan-gray evan-gray self-assigned this Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment