Skip to content

Commit

Permalink
testing reverse hash
Browse files Browse the repository at this point in the history
  • Loading branch information
slanesuke committed Apr 17, 2024
1 parent d93ba14 commit 079141c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mine-your-first-block/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,9 @@ fn main() {
// Calculate the hash of the block header
//let block_hash = calculate_hash(serialized_block_header.clone());
let block_hash = double_sha256(serialized_block_header.clone());
let block_hash = hex::encode(block_hash);
let mut block_h = block_hash;
block_h.reverse();
let block_hash = hex::encode(block_h);


// Check if the hash meets the target
Expand Down

0 comments on commit 079141c

Please sign in to comment.