From 4c24d182519dcbf13d9369de337bcabb6071ac68 Mon Sep 17 00:00:00 2001 From: Ian Slane Date: Tue, 16 Apr 2024 22:36:22 -0600 Subject: [PATCH] tiny fix --- mine-your-first-block/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mine-your-first-block/src/main.rs b/mine-your-first-block/src/main.rs index f239eb7..410e0f7 100644 --- a/mine-your-first-block/src/main.rs +++ b/mine-your-first-block/src/main.rs @@ -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);