diff --git a/mine-your-first-block/src/main.rs b/mine-your-first-block/src/main.rs index c8dcc79..50d7669 100644 --- a/mine-your-first-block/src/main.rs +++ b/mine-your-first-block/src/main.rs @@ -500,9 +500,9 @@ fn serialized_segwit_wtx(transaction: &Transaction) -> String { serialized_tx.push_str(&vin.txid); // I believe the txid needs to be in reversed byte order let txid_bytes = hex::decode(&vin.txid).unwrap(); - // let reversed_txid_bytes: Vec = txid_bytes.into_iter().rev().collect(); - // let reversed_txid = hex::encode(reversed_txid_bytes); - // serialized_tx.push_str(&reversed_txid); + let reversed_txid_bytes: Vec = txid_bytes.into_iter().rev().collect(); + let reversed_txid = hex::encode(reversed_txid_bytes); + serialized_tx.push_str(&reversed_txid);