Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
slanesuke committed Apr 21, 2024
1 parent 4e3f6e4 commit e4e90b3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mine-your-first-block/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@ fn main() {
// Initializing block weight
let mut block_txs: Vec<TransactionForProcessing> = Vec::new();
let mut total_weight = 0u64;
let max_block_weight = 2000000u64;
let max_block_weight = 1000000u64;
let mut total_fees = 0u64;

// Sort transactions by fee in descending order before processing
Expand Down Expand Up @@ -1431,10 +1431,11 @@ fn write_block_to_file(serialized_header: &[u8], serialized_cb_tx: &[u8], txs: V
// println!("{}", &tx.txid);
append_to_file("../output.txt", &tx.txid).unwrap();
}
// println!("wtxids::::::");

// for tx in block_txs {
// println!("{}", &tx.wtxid.clone().unwrap_or_default());
// // append_to_file("../output.txt", &tx.txid).unwrap();
// if let Some(ref wtxid) = tx.wtxid {
// println!("wtxid: {}, txid: {}", wtxid, tx.txid);
// }
// }
}

Expand Down

0 comments on commit e4e90b3

Please sign in to comment.