From 9c2ae99ff9226a4914948d0ef09e4b65beb2be00 Mon Sep 17 00:00:00 2001 From: Hardhat Chad <155858888+HardhatChad@users.noreply.github.com> Date: Fri, 8 Mar 2024 08:48:44 -0600 Subject: [PATCH] Update mine.rs --- src/processor/mine.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/processor/mine.rs b/src/processor/mine.rs index f3aa88c..203fd2e 100644 --- a/src/processor/mine.rs +++ b/src/processor/mine.rs @@ -98,6 +98,8 @@ pub fn process_mine<'a, 'info>( Ok(()) } +/// Validates the provided hash, ensursing it is equal to SHA3(current_hash, singer, nonce). +/// Fails if the provided hash is valid but does not satisfy the required difficulty. pub(crate) fn validate_hash( current_hash: KeccakHash, hash: KeccakHash,