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

Not compatible stratum #147

Closed
sammy007 opened this issue Oct 10, 2017 · 5 comments
Closed

Not compatible stratum #147

sammy007 opened this issue Oct 10, 2017 · 5 comments
Labels

Comments

@sammy007
Copy link

xmrig checks jobid in setId() method of the class JobID which must be at least 4 bytes long to pass the check.

https://github.com/sammy007/monero-stratum/issues/60#issuecomment-335088449

Such requirement is incorrect.

diff -ur xmrig_orig/src/net/JobId.h xmrig/src/net/JobId.h
--- xmrig_orig/src/net/JobId.h	2017-10-09 03:22:24.733266554 -0400
+++ xmrig/src/net/JobId.h	2017-10-09 03:23:04.392712944 -0400
@@ -63,7 +63,7 @@
         }
 
         const size_t size = strlen(id);
-        if (size < 4 || size >= sizeof(m_data)) {
+        if (size >= sizeof(m_data)) {
             return false;
         }
 
@xmrig xmrig added the bug label Oct 10, 2017
@xmrig
Copy link
Owner

xmrig commented Oct 10, 2017

I fixed it. Please don't close this issue I will install your monero-stratum to verify all works fine in other places.
Thank you.

@sammy007
Copy link
Author

Very nice, thank you.

@2010phenix
Copy link

Xmrig, maybe we have this bug and in old, written on C (classic) miner?

@xmrig
Copy link
Owner

xmrig commented Oct 11, 2017

@2010phenix good catch. I check it now, classic miner unaffected.
Also this bug was in proxy too, after update, miners behind proxy will be unaffected.
I will make bugfix release in 1-2 days.
Thank you.

@xmrig
Copy link
Owner

xmrig commented Oct 15, 2017

v2.4.1 with the fix released.

@xmrig xmrig closed this as completed Oct 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants