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

Will this work to forward different mining users? #9

Open
SecretRecipe opened this issue Jan 11, 2019 · 3 comments
Open

Will this work to forward different mining users? #9

SecretRecipe opened this issue Jan 11, 2019 · 3 comments

Comments

@SecretRecipe
Copy link

Will this allow me to forward different mining users to a pool and have them be able to use their own wallet addresses etc?

@p4u
Copy link
Owner

p4u commented Jan 11, 2019

Yes, that's what the relay does. See the PDF https://github.com/p4u/stratum-relay/blob/master/stratum_relay.pdf

@SecretRecipe
Copy link
Author

SecretRecipe commented Jan 12, 2019

So far, when I specify the -u, the miner that connects is stuck with that, not the -u from their bat. I can't find a literal guide how to get it to work like you say and "relay". To be clear, I want to relay multiple users. Different wallet addresses per user. Like if they have the -u walletaddress specified in their bat, I want it to connect as that.

@p4u
Copy link
Owner

p4u commented Jan 14, 2019

I did not understood your question. Now I think I do but it's hard to see a use cause.

No, multiple destination users for the pool is not supported. See this line in the code

controller.poolmap['user'] = args.username

The code might by modified to allow multiple users separated by comma, split the string and store users in an array.

Then modify this line too

proxy.set_auth(controller.poolmap['user'], controller.poolmap['pass'])
For using one of the users in the array (and increase array index to let the next connection to use another user).

Does not look like a hard modification to achieve, however I've no miners anymore for testing it and no motivation for working on it anymore (people makes money by using my open source software, but no BTC donations so far) so feel free to do it yourself.

Cheers.

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

2 participants