Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
slanesuke committed Apr 22, 2024
1 parent a08694f commit eb6842a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mine-your-first-block/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,6 @@ 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 = double_sha256(serialized_block_header.clone());
let mut block_h = block_hash;
block_h.reverse();
Expand All @@ -1408,6 +1407,12 @@ fn write_block_to_file(serialized_header: &[u8], serialized_cb_tx: &[u8], txs: V
for tx in block_txs {
append_to_file("../output.txt", &tx.txid).unwrap();
}

for wtxid in block_txs {
if let Some(wtxid) = &wtxid.wtxid {
println!("{}", wtxid);
}
}
}


Expand Down

0 comments on commit eb6842a

Please sign in to comment.