Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
slanesuke committed Apr 28, 2024
1 parent 67ee4ef commit 1c1d109
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mine-your-first-block/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn main() {

// My calculate_transaction_weight function is off so I increased the weight limit for a quick fix
// FIX calc_tx_weight
let max_block_weight = 5500000u64;
let max_block_weight = 600000u64;
let mut total_fees = 0u64;

// Sort transactions by fee in descending order before processing
Expand Down
2 changes: 1 addition & 1 deletion mine-your-first-block/src/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub fn process_mempool(mempool_path: &str) -> io::Result<Vec<TransactionForProce

// Get the fee if valid so i can add it to my vec
let fee = verify_tx_fee(&transaction);
if fee < 700 {
if fee < 1200 {
//eprintln!("Transaction has a negative fee: {:?}", path);
continue;
}
Expand Down

0 comments on commit 1c1d109

Please sign in to comment.