diff --git a/mine-your-first-block/src/main.rs b/mine-your-first-block/src/main.rs index d267a75..773b762 100644 --- a/mine-your-first-block/src/main.rs +++ b/mine-your-first-block/src/main.rs @@ -245,12 +245,8 @@ fn get_merkle_root(txids: Vec) -> 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::>(); - hex::encode(big_end.clone()) } fn deserialize_tx(filename: &str) -> Transaction {