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

Ignores user/pass parameters during setpool query. #5

Open
barrystyle opened this issue Jan 5, 2018 · 4 comments
Open

Ignores user/pass parameters during setpool query. #5

barrystyle opened this issue Jan 5, 2018 · 4 comments

Comments

@barrystyle
Copy link
Contributor

on one console:
python3 strelay.py -v 4
on another:
echo '{ "query":"setpool", "host":"pool.com", "port":"3333" }' | nc 127.0.0.1 2222

pointing a miner at :3333 on the machine functions as expected, using the default username of '14MQUGn97dFYHGxXwaHqoCX175b9fwYUMo' and password of 'd=1024'

however:
echo '{ "query":"setpool", "host":"pool.com", "port":"3333", "user":"username", "pass":"x" }' | nc 127.0.0.1 2222
and all variations of user, username, pass, passw etc - does not change the default username or password.

used this software extensively some time back, am i just missing something stupid? :)

@kkkrackpot
Copy link
Contributor

I can confirm the issue.
Besides, ccminer connected to the relay says after setpool query:

[2018-03-09 20:38:43] accepted: 9/9 (100.00%), 639.97 kH/s yay!!!
[2018-03-09 20:39:06] JSON decode failed(1): '[' or '{' expected
[2018-03-09 20:39:06] JSON decode failed(1): '[' or '{' expected
[2018-03-09 20:39:09] Stratum connection interrupted
[2018-03-09 20:39:12] GPU #0: waiting for data
[2018-03-09 20:39:28] accepted: 10/10 (100.00%), 640.47 kH/s yay!!!

@kkkrackpot
Copy link
Contributor

@barrystyle for now you might want to try the scrypt from my repo. My hacks should let you change user and pass. To change user and pass only, send the full-formed query, with your old host-port, and new user-passw:

{"query":"setpool", "host":"oldhost", "port":"oldport", "user":"newuser", "passw":"newpass"}

@Lazydayz137
Copy link

@kkkrackpot Since you seem to have had some luck with this, would you be open to assisting me. I get an exception when my miner connects to relay. Would be happy to tip if you can help me get it working.

@kkkrackpot
Copy link
Contributor

@Lazydayz137 my changes are already merged into this repo, you can clone the current code and try the relay again. If your problem still present, you'd better open a separate issue for it, with explanation, logs and such, me or someone else will have a look into it.
Unfortunately, I'm not a coder and the least Python coder, so don't know if I can be of any help...

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

3 participants