Skip to content

Commit

Permalink
added input and compact size for coinbse to test
Browse files Browse the repository at this point in the history
  • Loading branch information
slanesuke committed Apr 20, 2024
1 parent 4408255 commit 278a180
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mine-your-first-block/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}
Expand Down

0 comments on commit 278a180

Please sign in to comment.