Skip to content

Fixed GPU validation for rx/2.#3801

Open
im10furry wants to merge 1 commit into
xmrig:masterfrom
im10furry:master
Open

Fixed GPU validation for rx/2.#3801
im10furry wants to merge 1 commit into
xmrig:masterfrom
im10furry:master

Conversation

@im10furry

Copy link
Copy Markdown

Required for rx/2 GPU support.

JobResults::getResults() revalidates GPU nonces on CPU before submission. For rx/2, the final
share target must be checked against the commitment, not the raw RandomX hash.

This patch updates the GPU verification path to:

  • calculate the raw RandomX hash for the returned nonce
  • calculate the rx/2 commitment from the blob and raw hash
  • validate the commitment against the job target
  • pass the raw hash as extra data so the submit path can send the correct commitment field

No behavior changes for other algorithms.

@SChernykh

Copy link
Copy Markdown
Contributor

rx/2 is not supported on GPU due to its uselessness. rx/0 GPU support was just a proof of concept to get the real performance numbers.

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.

2 participants