Skip to content

Commit

Permalink
Fixing a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephLai241 committed Jul 23, 2021
1 parent f433e38 commit 50d9178
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,12 @@ use ring::digest::{
let mut nonce: usize = 0;

while !self.is_valid_hash(difficulty, &hash) {
nonce += 1;

let mut temp_hash_string = self.get_hash_string();
temp_hash_string.push_str(&nonce.to_string());

hash = Block::get_hash(&temp_hash_string);
nonce += 1;
}

self.block_hash = hash;
Expand Down

0 comments on commit 50d9178

Please sign in to comment.