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.
This commit is contained in:
Olaoluwa Osuntokun committed 2024-11-14 16:09:59 -08:00
1 parent 87b4991bb6
commit 414894348a
1 file changed
+3 -1
+3 -1
View File
@@ -373,7 +373,9 @@ func (b *BudgetInputSet) Budget() btcutil.Amount {
budget += input.params.Budget
}
return budget
// We'll also tack on the extra budget which will eventually be
// accounted for by the wallet txns when we're broadcasting.
return budget + b.extraBudget
}
// DeadlineHeight returns the deadline height of the set.