diff --git a/mine-your-first-block/src/main.rs b/mine-your-first-block/src/main.rs index 58b59ce..344931e 100644 --- a/mine-your-first-block/src/main.rs +++ b/mine-your-first-block/src/main.rs @@ -252,8 +252,8 @@ fn get_merkle_root(txids: Vec) -> String { // The last hash in the merkle tree // merkle root in little endian let merkle_root = be_txid[0].to_vec(); - let merkle_root_be = merkle_root.iter().rev().cloned().collect::>(); - hex::encode(merkle_root_be) + //let merkle_root_be = merkle_root.iter().rev().cloned().collect::>(); + hex::encode(merkle_root) } fn deserialize_tx(filename: &str) -> Transaction {