Indent functions
This fixes indentatiion that was intentionally "messed up" to make code review easier.
This commit is contained in:
parent
d56d202aeb
commit
00b46d6d9d
|
@ -1251,7 +1251,7 @@ pub fn predict_weight<I, O>(inputs: I, output_script_lens: O) -> Weight
|
||||||
}
|
}
|
||||||
|
|
||||||
crate::internal_macros::maybe_const_fn! {
|
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 input_weight = partial_input_weight + input_count * 4 * (32 + 4 + 4);
|
||||||
let output_size = 8 * output_count + output_scripts_size;
|
let output_size = 8 * output_count + output_scripts_size;
|
||||||
let non_input_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
|
non_input_size * 4 + input_weight + input_count - inputs_with_witnesses + 2
|
||||||
};
|
};
|
||||||
Weight::from_wu(weight as u64)
|
Weight::from_wu(weight as u64)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Predicts the weight of a to-be-constructed transaction in const context.
|
/// Predicts the weight of a to-be-constructed transaction in const context.
|
||||||
|
|
Loading…
Reference in New Issue