Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
WagLayla authored Sep 20, 2024
1 parent c4c179f commit 2194ce7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions consensus/pow/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ impl State {
pub fn calculate_pow(&self, nonce: u64) -> Uint256 {
// Hasher already contains PRE_POW_HASH || TIME || 32 zero byte padding; so only the NONCE is missing
let hash = self.hasher.clone().finalize_with_nonce(nonce);
let bl3_hash = blake3::hash(&hash.as_bytes());
let bl3_hash_bytes: [u8; 32] = *bl3_hash.as_bytes();
let mut sha3_hasher = Sha3_256::new();
sha3_hasher.update(bl3_hash_bytes);
Expand Down

0 comments on commit 2194ce7

Please sign in to comment.