randomize hash

This commit is contained in:
Hardhat Chad
2024-04-14 06:12:35 +00:00
parent ca1820606d
commit 9122429140
5 changed files with 13 additions and 27 deletions

View File

@@ -116,7 +116,7 @@ pub(crate) fn validate_hash(
signer.as_ref(),
]);
if hash.gt(&difficulty) {
return Err(OreError::DifficultyNotSatisfied.into());
return Err(OreError::HashInvalid.into());
}
Ok(hash)
}