From 02dddbf09007b224be25f75fb6d4133b4339d278 Mon Sep 17 00:00:00 2001 From: rooooooooob Date: Fri, 23 Aug 2024 17:10:15 -0700 Subject: [PATCH] cleaning up --- chain/rust/src/builders/tx_builder.rs | 29 --------------------------- 1 file changed, 29 deletions(-) diff --git a/chain/rust/src/builders/tx_builder.rs b/chain/rust/src/builders/tx_builder.rs index 28c5ab1d..8c2cb01c 100644 --- a/chain/rust/src/builders/tx_builder.rs +++ b/chain/rust/src/builders/tx_builder.rs @@ -239,21 +239,6 @@ fn min_fee_with_exunits(tx_builder: &TransactionBuilder) -> Result = if let Some(ref_inputs) = &tx_builder.reference_inputs { - // ref_inputs.iter().chain(tx_builder.inputs.iter()).filter_map(ref_script_orig_size_builder).collect() - // } else { - // tx_builder.inputs.iter().filter_map(ref_script_orig_size_builder).collect() - // }; - - // let mut total_ref_script_size = 0; - // for output in tx_builder.outputs.iter() { - // if let Some(Credential::Script{ hash, .. }) = output.address().payment_cred() { - // if let Some(orig_size) = ref_script_orig_sizes.get(hash) { - // total_ref_script_size += *orig_size; - // println!("USING REF SCRIPT {} | SIZE {}", hash.to_hex(), orig_size); - // } - // } - // } let ref_script_orig_sizes: HashMap = if let Some(ref_inputs) = &tx_builder.reference_inputs { @@ -265,28 +250,15 @@ fn min_fee_with_exunits(tx_builder: &TransactionBuilder) -> Result, collateral_return: Option, reference_inputs: Option>, - //reference_scripts_used: Vec