From 905f01410d208be5cdd6f5eb7cbef6241ec4753c Mon Sep 17 00:00:00 2001 From: Ian Slane Date: Sun, 21 Apr 2024 23:53:44 -0600 Subject: [PATCH] maybe wrong coinbase tx serialization --- mine-your-first-block/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mine-your-first-block/src/main.rs b/mine-your-first-block/src/main.rs index 05c3977..6d3552b 100644 --- a/mine-your-first-block/src/main.rs +++ b/mine-your-first-block/src/main.rs @@ -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());