@@ -12,7 +12,7 @@ pub struct OutputGroup {
1212 ///
1313 /// The `txin` fields: `prevout`, `nSequence`, `scriptSigLen`, `scriptSig`, `scriptWitnessLen`,
1414 /// and `scriptWitness` should all be included.
15- pub weight : u32 ,
15+ pub weight : u64 ,
1616 /// The total number of inputs
1717 pub input_count : usize ,
1818 /// Specifies the relative creation sequence for this group, used only for FIFO selection.
@@ -42,21 +42,21 @@ pub struct CoinSelectionOpt {
4242 ///
4343 /// This includes weight of the header, total weight out outputs, weight of fields used
4444 /// to represent number number of inputs and number outputs, witness etc.,
45- pub base_weight : u32 ,
45+ pub base_weight : u64 ,
4646
4747 /// Additional weight if we include the change output.
4848 ///
4949 /// Used in weight metric computation.
50- pub change_weight : u32 ,
50+ pub change_weight : u64 ,
5151
5252 /// Weight of spending the change output in the future.
5353 pub change_cost : u64 ,
5454
5555 /// Estimate of average weight of an input.
56- pub avg_input_weight : u32 ,
56+ pub avg_input_weight : u64 ,
5757
5858 /// Estimate of average weight of an output.
59- pub avg_output_weight : u32 ,
59+ pub avg_output_weight : u64 ,
6060
6161 /// Minimum value allowed for a change output to avoid dusts.
6262 pub min_change_value : u64 ,
@@ -102,4 +102,4 @@ pub struct SelectionOutput {
102102pub type EffectiveValue = u64 ;
103103
104104/// Weight type alias
105- pub type Weight = u32 ;
105+ pub type Weight = u64 ;
0 commit comments