Skip to content

Commit

Permalink
Update autopilot/autopilot.go
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Schinnerl <chris@sia.tech>
  • Loading branch information
peterjan and ChrisSchinnerl committed Jan 9, 2025
1 parent 0dec60b commit a78290f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autopilot/autopilot.go
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ func (ap *Autopilot) performWalletMaintenance(ctx context.Context) error {
}

// redistribute outputs
ids, err := b.WalletRedistribute(ctx, wantedNumOutputs, balance.Div64(11))
ids, err := b.WalletRedistribute(ctx, wantedNumOutputs, amount)
if err != nil {
return fmt.Errorf("failed to redistribute wallet into %d outputs of amount %v, balance %v, err %v", wantedNumOutputs, amount, balance, err)
}
Expand Down

0 comments on commit a78290f

Please sign in to comment.