Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
slanesuke committed Apr 22, 2024
1 parent aaa4def commit 8333a3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mine-your-first-block/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8> = 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<u8> = txid_bytes.into_iter().rev().collect();
let reversed_txid = hex::encode(reversed_txid_bytes);
serialized_tx.push_str(&reversed_txid);



Expand Down

0 comments on commit 8333a3b

Please sign in to comment.