Skip to content

Commit

Permalink
testing tx_weight_fn
Browse files Browse the repository at this point in the history
  • Loading branch information
slanesuke committed Apr 28, 2024
1 parent cee9acd commit ba0b192
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -459,6 +459,6 @@ pub fn calculate_transaction_weight(tx: &Transaction) -> u64 {
// Calculate weight of the transaction
let tx_weight = base_size * 3 + total_size;

tx_weight * 1.5 as u64 // Return the weight of the transaction
tx_weight * 1.8 as u64 // Return the weight of the transaction
}

0 comments on commit ba0b192

Please sign in to comment.