libblkmaker icon indicating copy to clipboard operation
libblkmaker copied to clipboard

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

Open superkisme opened this issue 3 years ago • 2 comments

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 avatar Jul 22 '21 07:07 superkisme

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

superkisme avatar Jul 22 '21 09:07 superkisme