@@ -35,7 +35,7 @@ type inputCluster struct {
35
35
// inputs are skipped. No input sets with a total value after fees below the
36
36
// dust limit are returned.
37
37
func (c * inputCluster ) createInputSets (maxFeeRate chainfee.SatPerKWeight ,
38
- maxInputs int ) []InputSet {
38
+ maxInputs uint32 ) []InputSet {
39
39
40
40
// Turn the inputs into a slice so we can sort them.
41
41
inputList := make ([]* pendingInput , 0 , len (c .inputs ))
@@ -138,7 +138,7 @@ type SimpleAggregator struct {
138
138
// MaxInputsPerTx specifies the default maximum number of inputs allowed
139
139
// in a single sweep tx. If more need to be swept, multiple txes are
140
140
// created and published.
141
- MaxInputsPerTx int
141
+ MaxInputsPerTx uint32
142
142
143
143
// FeeRateBucketSize is the default size of fee rate buckets we'll use
144
144
// when clustering inputs into buckets with similar fee rates within
@@ -158,7 +158,7 @@ var _ UtxoAggregator = (*SimpleAggregator)(nil)
158
158
159
159
// NewSimpleUtxoAggregator creates a new instance of a SimpleAggregator.
160
160
func NewSimpleUtxoAggregator (estimator chainfee.Estimator ,
161
- max chainfee.SatPerKWeight , maxTx int ) * SimpleAggregator {
161
+ max chainfee.SatPerKWeight , maxTx uint32 ) * SimpleAggregator {
162
162
163
163
return & SimpleAggregator {
164
164
FeeEstimator : estimator ,
0 commit comments