-
Notifications
You must be signed in to change notification settings - Fork 990
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
Event Callback Registration for Stratum Server #2538
Comments
👍 from grin-pool.org here (using 2. currently) Events I'd like to see hooks for:
|
For my education - I heard all pools have some proxies on top of grin stratum, can it intercept requests and gets most of this info (not sure how stratum is chatty about reasons etc)? |
Yes, proxies can get most of the info. For the stuff they can't, we need to a) modify grin-server to send us the information we need and b) write some logic within the proxy to remove that info/to not pass it along to miners |
Sounds reasonable. Do you mean in-process API (Rust) or smth like websocket or both? |
Not websockets. I prefer in-process for performance. I would like to be able to build my custom code into a shared library, and the grin-server would load that and call the methods I define. The simplest (though not cleanest) way is for grin-server to include a "default implementation" (just empty functions) in an external shared library, which could be replaced by the custom library I write. [edit] the zeromq idea in #2321 also seems fine |
Can this issue be closed now that we have webhooks? @bladedoyle @mcdallas |
Closing, feel free to reopen if needed |
Is your feature request related to a problem? Please describe.
Pools need to get information from the built-in stratum server - for example to know when a block is found. The current options are:
Describe the solution you'd like
I would like the built-in stratum server to support event hooks with callback registration api. This will allow a pool operator to write custom code that is called when events they care about occur.
The text was updated successfully, but these errors were encountered: