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

why this code can check the nonce-hash is smaller than target? #24

Open
superkisme opened this issue Jul 22, 2021 · 2 comments
Open

why this code can check the nonce-hash is smaller than target? #24

superkisme opened this issue Jul 22, 2021 · 2 comments

Comments

@superkisme
Copy link

superkisme commented Jul 22, 2021

code for the correct nonce found:
if (!(uint32_t)(&hash[28]))
{
hash_found = 1;
......
}
hash[28] = 0 means the hash is smaller then target?

don't need to compare the hash with the target? like... hextoint(hash) < hextoint(target)....?

i'm new sorry, but why..

@superkisme superkisme changed the title why this code can check nonce is lower than target? why this code can check nonce is smaller than target? Jul 22, 2021
@superkisme superkisme changed the title why this code can check nonce is smaller than target? why this code can check the nonce-hash is smaller than target? Jul 22, 2021
@superkisme
Copy link
Author

is that because the example's using target is :00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff..?

@Khalilheyrani6367

This comment was marked as spam.

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

No branches or pull requests

2 participants