Skip to content

Commit

Permalink
fixup! cmd: new input selection changes are adopted.
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggie1984 committed Feb 14, 2023
1 parent e9c822c commit a1b94d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/sweepaccount/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,15 +274,14 @@ func sweep() error {
numErrors++
}
for _, previousOutputs := range sourceOutputs {
// inputSource := makeInputSource(previousOutputs)
inputs, err := fetchInputs(previousOutputs)
if err != nil {
return err
}
destinationSource := makeDestinationScriptSource(rpcClient, opts.DestinationAccount)
// We are only selecting postive yieling outputs.
tx, err := txauthor.NewUnsignedTransaction(nil, opts.FeeRate.Amount,
inputs, txauthor.PositiveYieldingSelection, destinationSource)
inputs, txauthor.ConstantSelection, destinationSource)
if err != nil {
if err != (noInputValue{}) {
reportError("Failed to create unsigned transaction: %v", err)
Expand Down

0 comments on commit a1b94d0

Please sign in to comment.