You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The boost stratum server reads all open jobs from the API on startup but after that point has no way of detecting changes to currently open jobs. Two possible ways that the open jobs can change are
an new job is detected
an old job is completed
We discussed a system similar to Kafka + Zookeeper, which is what BTCPool used, that has some kind of centralized message queue. The blockchain scanner should send messages on this queue for new jobs and completed jobs.
New jobs: need an outpoint (txid and output index), and an output (script and satoshi value)
Completed job: need the outpoint of the completed output.
The text was updated successfully, but these errors were encountered:
In summary the stratum server needs two queues. Good news is the app is already set up to use rabbitmq for this exact purpose in a rather elegant way.
The powco-api service will publish boost.job.created and boost.job.completed events to rabbitmq.
The boost-stratum service will maintain a queue receiving the boost.job.created and boost.job.completed events and respond accordingly by updating its internal state and triggering further actions.
The rabbitmq interaction is already set up and configured using the rabbi library for typescript, which I personally developed. In this way we get reliable real-time message passing between our various services regardless of which host or data center.
The boost stratum server reads all open jobs from the API on startup but after that point has no way of detecting changes to currently open jobs. Two possible ways that the open jobs can change are
We discussed a system similar to Kafka + Zookeeper, which is what BTCPool used, that has some kind of centralized message queue. The blockchain scanner should send messages on this queue for new jobs and completed jobs.
New jobs: need an outpoint (txid and output index), and an output (script and satoshi value)
Completed job: need the outpoint of the completed output.
The text was updated successfully, but these errors were encountered: