Code:
public static bool FinalCompare(byte[] hash, byte[] target)
{
for (int i = hash.Length - 1; i >= 0; i--)
{
if ((hash[i] & 0xff) > (target[i] & 0xff))
return false;
if ((hash[i] & 0xff) < (target[i] & 0xff))
return true;
}
return false;
}
Bitcoin Forum |
![]() |
June 20, 2024, 08:07:34 AM
![]() |
|||
|
News: Voting for pizza day contest |
Home | Help | Search | Login | Register | More |
|