From 278a180495af7b09a96803d0544a9e3ab544b3d7 Mon Sep 17 00:00:00 2001 From: Ian Slane Date: Sat, 20 Apr 2024 11:18:48 -0600 Subject: [PATCH] added input and compact size for coinbse to test --- mine-your-first-block/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mine-your-first-block/src/main.rs b/mine-your-first-block/src/main.rs index 5bfac9b..b37d7ea 100644 --- a/mine-your-first-block/src/main.rs +++ b/mine-your-first-block/src/main.rs @@ -385,6 +385,8 @@ fn serialize_tx(transaction: &Transaction) -> String { for vin in &transaction.vin { if let Some(witness) = &vin.witness { if witness[0] == "0000000000000000000000000000000000000000000000000000000000000000" { + serialized_tx.push_str("01"); + serialized_tx.push_str("20"); serialized_tx.push_str(&witness[0]); } }