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 / fix / document sv2 CPU miner #798

Closed
Sjors opened this issue Mar 18, 2024 · 6 comments
Closed

Create / fix / document sv2 CPU miner #798

Sjors opened this issue Mar 18, 2024 · 6 comments

Comments

@Sjors
Copy link
Collaborator

Sjors commented Mar 18, 2024

One thing I noticed during my Stratum v2 workshop in London is that's it really hard to test things without a CPU miner.

Right now you have to get a CPU miner from somewhere else, e.g. https://github.com/pooler/cpuminer/ which may or may not compile. And then you have to build and configure the translator role.

There's a mining-device under test-utils. I'm guessing this is a CPU miner? But it's undocumented and it's not clear what the status is.

In any case, it would be nice to have a simple CPU miner that can be pointed directly at an sv2 pool (and job declarator client??).

It does not have to be efficient; a custom signet can have very low difficulty.

@Fi3
Copy link
Collaborator

Fi3 commented Mar 18, 2024

the mining-device in test-utils is an header only downstream, is used mostly for test but with few changes can be eg parsing args to get upstream endpoint can be transformed in what you are looking for.

@Fi3
Copy link
Collaborator

Fi3 commented Mar 19, 2024

it still use unencrypted connection so we need to change also that, if we agree on what we want from the cpu miner I can do PR improve it @Sjors

@Sjors
Copy link
Collaborator Author

Sjors commented Mar 19, 2024

What I'd like to do with it is to simply point the CPU miner to the pool role (or to the job declarator client) and then it should produce blocks (shares).

Nice to have:

  1. set a target --nbits, so that it mines only enough blocks to keep the difficulty at that level
  2. check the (pool) certificcate

@plebhash
Copy link
Collaborator

plebhash commented Mar 26, 2024

@Fi3 I guess these issues are also related:

while you're working on this, it could be good to tackle all of these other issues as well?

@GitGab19
Copy link
Collaborator

@Fi3 did you know if issues #607, #529 have been addressed by your PR #819 that we merged last week?

@Sjors
Copy link
Collaborator Author

Sjors commented Apr 15, 2024

This works, so I'm going to close the issue. But I do have a followup: #850

@Sjors Sjors closed this as completed Apr 15, 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

4 participants