Skip to content

Commit e1a25f6

Browse files
Roasbeefguggero
authored andcommitted
sweep: update BudgetInputSet.Budget() to factor in extra budget
In this commit, we update the `Budget()` call to factor in the `extraBudget` value. Otherwise, when we go to intialize the fee function, we won't factor in the extra budget, and will determine that we can't broadcast/bump.
1 parent 6db7d42 commit e1a25f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sweep/tx_input_set.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,9 @@ func (b *BudgetInputSet) Budget() btcutil.Amount {
373373
budget += input.params.Budget
374374
}
375375

376-
return budget
376+
// We'll also tack on the extra budget which will eventually be
377+
// accounted for by the wallet txns when we're broadcasting.
378+
return budget + b.extraBudget
377379
}
378380

379381
// DeadlineHeight returns the deadline height of the set.

0 commit comments

Comments
 (0)