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 2024-11-07 18:54:33 -08:00
parent 87b4991bb6
commit 414894348a
No known key found for this signature in database
GPG Key ID: 90525F7DEEE0AD86

View File

@ -373,7 +373,9 @@ func (b *BudgetInputSet) Budget() btcutil.Amount {
budget += input.params.Budget 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. // DeadlineHeight returns the deadline height of the set.