libblkmaker
libblkmaker copied to clipboard
why this code can check the nonce-hash is smaller than target?
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..
is that because the example's using target is :00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff..?