Skip to content

Commit

Permalink
change hash
Browse files Browse the repository at this point in the history
  • Loading branch information
slanesuke committed Apr 17, 2024
1 parent a0b01c5 commit 64092f6
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 @@ -975,7 +975,9 @@ fn main() {
let serialized_block_header = serialize_block_header(&block_header);

// Calculate the hash of the block header
let block_hash = calculate_hash(serialized_block_header.clone());
//let block_hash = calculate_hash(serialized_block_header.clone());
let block_hash = double_sha256(serialized_block_header);
let block_hash = hex::encode(block_hash);


// Check if the hash meets the target
Expand Down

0 comments on commit 64092f6

Please sign in to comment.