Skip to content

Commit

Permalink
cleaned up block.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
slanesuke committed Apr 28, 2024
1 parent 4ba6dc5 commit a023e88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mine-your-first-block/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub fn create_coinbase_tx(total_tx_fee: u64, witness_root_vec: Vec<String>) -> T
let txid= "0000000000000000000000000000000000000000000000000000000000000000".to_string();
// input count is 1 byte 01
coinbase_tx.vin.push(Vin {
txid,
txid: txid.clone(),
vout: 0xffffffff,
prevout: Prevout {
scriptpubkey: "".to_string(),
Expand All @@ -42,7 +42,7 @@ pub fn create_coinbase_tx(total_tx_fee: u64, witness_root_vec: Vec<String>) -> T
},
scriptsig: block_scriptsig,
scriptsig_asm: "OP_PUSHBYTES_3 837122".to_string(),
witness: Some(vec![txid]),
witness: Some(vec![txid.clone()]),
is_coinbase: true,
sequence: 0xffffffff,
});
Expand Down

0 comments on commit a023e88

Please sign in to comment.