From 8333a3b598b718f8bd988871f0b0f9d2d5ba2f76 Mon Sep 17 00:00:00 2001 From: Ian Slane Date: Sun, 21 Apr 2024 22:56:37 -0600 Subject: [PATCH] test --- mine-your-first-block/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);