From ba0b192b5d29dc824a351a1c37049aa22517cbf9 Mon Sep 17 00:00:00 2001 From: Ian Slane Date: Sat, 27 Apr 2024 22:04:09 -0600 Subject: [PATCH] testing tx_weight_fn --- mine-your-first-block/src/validation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mine-your-first-block/src/validation.rs b/mine-your-first-block/src/validation.rs index 82c41af..cb2e13c 100644 --- a/mine-your-first-block/src/validation.rs +++ b/mine-your-first-block/src/validation.rs @@ -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 }