Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
slanesuke committed Apr 22, 2024
1 parent 57710db commit b7ed72e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mine-your-first-block/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1382,14 +1382,14 @@ fn main() {
let cb_txid_bytes = hex::decode(serialized_cb_tx_for_txid).unwrap();
let coinbase_txid = double_sha256(cb_txid_bytes.clone());
let mut coinbase_txid_le = coinbase_txid.to_vec();
//coinbase_txid_le.reverse();
coinbase_txid_le.reverse();
let coinbase_txid = hex::encode(coinbase_txid_le);

// Insert the coinbase transaction at the beginning of block_txs
let coinbase_tx_for_processing = TransactionForProcessing {
transaction: coinbase_tx.clone(),
txid: coinbase_txid.clone(),
wtxid: Some("0000000000000000000000000000000000000000000000000000000000000000".to_string()),
wtxid: None,
fee: 0,
is_p2wpkh: false,
};
Expand Down

0 comments on commit b7ed72e

Please sign in to comment.