Skip to content

Commit

Permalink
maybe wrong coinbase tx serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
slanesuke committed Apr 22, 2024
1 parent d907904 commit 905f014
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mine-your-first-block/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,8 @@ fn main() {

// Generate coinbase tx
let coinbase_tx = create_coinbase_tx(total_fees, wtx_ids_for_witness_root.clone());
let serialized_cb_tx = serialize_tx(&coinbase_tx);
// let serialized_cb_tx = serialize_tx(&coinbase_tx);
let serialized_cb_tx = serialized_segwit_tx(&coinbase_tx);
let cd_tx_bytes = hex::decode(serialized_cb_tx.clone()).unwrap();
// coinbase txid
let coinbase_txid = double_sha256(cd_tx_bytes.clone());
Expand Down

0 comments on commit 905f014

Please sign in to comment.