Indent functions

This fixes indentatiion that was intentionally "messed up" to make code
review easier.
This commit is contained in:
Martin Habovstiak 2023-03-16 20:12:58 +01:00
parent d56d202aeb
commit 00b46d6d9d
2 changed files with 33 additions and 33 deletions

View File

@ -1251,7 +1251,7 @@ pub fn predict_weight<I, O>(inputs: I, output_script_lens: O) -> Weight
}
crate::internal_macros::maybe_const_fn! {
fn predict_weight_internal(input_count: usize, partial_input_weight: usize, inputs_with_witnesses: usize, output_count: usize, output_scripts_size: usize) -> Weight {
fn predict_weight_internal(input_count: usize, partial_input_weight: usize, inputs_with_witnesses: usize, output_count: usize, output_scripts_size: usize) -> Weight {
let input_weight = partial_input_weight + input_count * 4 * (32 + 4 + 4);
let output_size = 8 * output_count + output_scripts_size;
let non_input_size =
@ -1269,7 +1269,7 @@ fn predict_weight_internal(input_count: usize, partial_input_weight: usize, inpu
non_input_size * 4 + input_weight + input_count - inputs_with_witnesses + 2
};
Weight::from_wu(weight as u64)
}
}
}
/// Predicts the weight of a to-be-constructed transaction in const context.