Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
slanesuke committed Apr 16, 2024
1 parent 6bbbb4d commit a38a6db
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions mine-your-first-block/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,8 @@ fn get_merkle_root(txids: Vec<String>) -> String {
}
// The last hash in the merkle tree
// merkle root
// hex::encode(be_txid[0])
hex::encode(be_txid[0])

// testin big endan
let merkle_root = be_txid[0].to_vec();
let big_end = merkle_root.iter().rev().cloned().collect::<Vec<u8>>();
hex::encode(big_end.clone())
}

fn deserialize_tx(filename: &str) -> Transaction {
Expand Down

0 comments on commit a38a6db

Please sign in to comment.