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

Create global application event bus #548

Open
aloknerurkar opened this issue Dec 30, 2024 · 0 comments
Open

Create global application event bus #548

aloknerurkar opened this issue Dec 30, 2024 · 0 comments
Assignees

Comments

@aloknerurkar
Copy link
Collaborator

We should create a global event bus package for mev-commit which can allow different packages to publish and subscribe to events. For eg:

  • Peer disconnections
  • Provider slashes for provider node as well as other bidder nodes
  • Rewards
  • Failed storing/opening commitments

Different sub-systems need to react to different events. So having a global event bus is a cleaner design than to do this specific to packages. This event bus can also be used to provide a new API for users to see these events in their infrastructure also.

For eg, provider slashing beyond certain point should lead to bidders re-configuring the encryption key and disconnecting from the provider. Also, currently if we fail to store commitment, there is no feedback for the provider nodes. This can happen due to balance being low or issues with the RPC endpoint. Both need to be addressed. The new API can allow users to see these events as well as other packages to react.

@aloknerurkar aloknerurkar self-assigned this Dec 30, 2024
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

No branches or pull requests

1 participant