[POC] Add Stratum V2 translator#811
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a1d03c02ae
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Signed-off-by: Pavlenex <36959754+pavlenex@users.noreply.github.com>
a1d03c0 to
bfa53c8
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bfa53c815b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Track translated miners so stale profiles can be released or safely replaced. Keep the fixed translator recoverable after crashes and advertise its reachable service address in the development stack. Co-authored-by: Pavlenex <36959754+pavlenex@users.noreply.github.com> Signed-off-by: Pavlenex <36959754+pavlenex@users.noreply.github.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2a33e425de
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Keep translated miners registered while ordinary pool assignments are queued and in flight. Release each miner only after its pool update succeeds so failed or partial batches retain a working local endpoint. Co-authored-by: Pavlenex <36959754+pavlenex@users.noreply.github.com> Signed-off-by: Pavlenex <36959754+pavlenex@users.noreply.github.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d56f794be8
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
…load Signed-off-by: Pavlenex <36959754+pavlenex@users.noreply.github.com>
8f154be to
c8916e8
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c8916e8665
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Signed-off-by: Pavlenex <36959754+pavlenex@users.noreply.github.com>
ac8082f to
92b0a3d
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 92b0a3dcb1
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Signed-off-by: Pavlenex <36959754+pavlenex@users.noreply.github.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f60bddd234
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Signed-off-by: Pavlenex <36959754+pavlenex@users.noreply.github.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f9b699e813
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Signed-off-by: Pavlenex <36959754+pavlenex@users.noreply.github.com>
|
Just reporting back that after all commits things still work. Again, consider this a POC. I am probably overlooking how proto is supposed to work, or certain use-cases. sv2-proto-updates-2.mp4 |
This PR is a proof of concept intended to demonstrate the Stratum V2 user experience in Fleet and show that supporting it may be relatively straightforward. It is meant primarily as inspiration and was built with Buzz.
If the team considers the approach and code solid, I’d be happy to continue working on it. Otherwise, please feel free to close the PR - my main goal is to explore the idea, and you know the codebase far better than I do.
The flow is:
Since I don’t have a local miner, I tested this by exposing my Proto instance, renting SV1 hashrate from Braiins, and pointing it at the translation proxy endpoint. Proto’s mock devices do not produce real hashrate, so this was the most practical way to verify the full flow. I ran approximately 5-10 PH/s for about an hour without encountering any issues.
The only limitation I noticed is that workers connected from outside the local network do not appear on the dashboard. This may be intentional, since Proto is designed primarily for local use. If it is not intentional, I’d be happy to investigate how externally connected workers could be displayed, but I am not quite sure that should be explored in this PR.
sv2-proto.mp4
If you have any questions please let me know, myself and open-source community behind reference implementation are at your guys disposal.