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

[PoW][RandomX] Display Hashspeed after processing #869

Merged
merged 1 commit into from
Nov 9, 2020

Conversation

CaveSpectre11
Copy link
Collaborator

@CaveSpectre11 CaveSpectre11 commented Nov 9, 2020

Problem

RandomX Hashspeed was not being displayed in the logfile when using blockcreation debugging

Root Cause

Technically it does; however only when you actually win a block or you get through the full 100,000 hashes without another block coming in. The problem was, if you stopped computing because another block came in while you were computing, it would restart the hashing on the next block, before it reports the hash speed used.

Solution

Move the hash debugging to before the check if the block was already found or not. Also a couple other tweaks made; reduce the cs_nonce critical section to minimum needed, as well as remove the hardcoded inner loop count, as that inner loop count is also used for nonce spacing. That way if the inner loop count is changed, the nonce separation between threads is consistent and doesn't leave gaps.

Issue

Addresses Issue #866

Copy link
Collaborator

@codeofalltrades codeofalltrades left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 21aa6c4

@codeofalltrades codeofalltrades merged commit 8bed093 into Veil-Project:master Nov 9, 2020
@CaveSpectre11 CaveSpectre11 deleted the RandomXHash branch November 10, 2020 03:52
@CaveSpectre11 CaveSpectre11 added this to the v1.1.1 milestone Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants