-
Notifications
You must be signed in to change notification settings - Fork 312
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
Nonce Selection Question ? #219
Comments
Why would you want to search a limited range? First you have to split up the nonce range if you have multiple gpus. Line 1553 in 2cf05c2
You could probably do it like this: nonceptr[0] = lowlimit + ((highlimit - lowlimit + 1) / opt_n_threads) * thr_id;
The highest nonce for each card is calculated here: Line 1387 in 2cf05c2
You could change it like this: uint32_t end_nonce = lowlimit - 1 + (highlimit - lowlimit + 1) / opt_n_threads * (thr_id + 1);
Then change this line Line 1479 in 2cf05c2
to if(nonceptr[0] >= end_nonce || extrajob) And change this line Line 1497 in 2cf05c2
to if((time(NULL) - g_work_time) >= scan_time || nonceptr[0] >= end_nonce))
(By the way, I just realized that the calculation in my code is probably sligthly wrong) |
Thank you very much KlausT for such a wonderful reply. |
I am trying to test in neoscrypt by selectively taking the nonce from a function, instead of sequentially for full range of 0 to 4G. Currently i have not yet figured out a clean way, as it seems to link at many places (start_nonce, end_nonce, max_nonce) using UINT32_MAX.
Can you help me what should be modified... lets take a very simple case... If we need to search only the nonce field from 0xffff to 0xffffff only..... during each job received from pool. Then where should be the change and recompile.
The text was updated successfully, but these errors were encountered: