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

setBlob should run after setAlgorithm #2217

Closed
wants to merge 1 commit into from
Closed

setBlob should run after setAlgorithm #2217

wants to merge 1 commit into from

Conversation

esrrhs
Copy link
Contributor

@esrrhs esrrhs commented Mar 29, 2021

Hi, is there a bug? because the function xmrig::Job::setBlob call nonceOffset and nonceSize which use the algorithm family, so if algorithm family change after setBlob there may be a bug

@SChernykh
Copy link
Contributor

Technically you are correct, but if you check the code it only matters for KawPow which uses EthStratumClient where it's already in the correct order. So there's no bug for other algorithms here.

@esrrhs
Copy link
Contributor Author

esrrhs commented Mar 29, 2021

Technically you are correct, but if you check the code it only matters for KawPow which uses EthStratumClient where it's already in the correct order. So there's no bug for other algorithms here.

yes, but maybe it could be more robustness if change the call order

@xmrig xmrig added this to the v6 milestone Mar 29, 2021
@xmrig
Copy link
Owner

xmrig commented Mar 29, 2021

Merged into dev branch.
Thank you.

@esrrhs esrrhs closed this Apr 3, 2021
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

Successfully merging this pull request may close these issues.

3 participants