Skip to content

Commit

Permalink
tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slanesuke committed Apr 17, 2024
1 parent 3d9979c commit 4c24d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mine-your-first-block/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ fn main() {
// Generate coinbase tx
let coinbase_tx = create_coinbase_tx(total_fees);
let serialized_cb_tx = serialize_tx(&coinbase_tx);
let cd_tx_bytes = hex::decode(serialized_cb_tx).unwrap();
let cd_tx_bytes = hex::decode(serialized_cb_tx.clone()).unwrap();

// coinbase txid
let coinbase_txid = double_sha256(cd_tx_bytes);
Expand Down

0 comments on commit 4c24d18

Please sign in to comment.