sweep: rename fee() to feeWithParent() for clarity

To make sure the caller has a better idea about what this method is
doing.
This commit is contained in:
yyforyongyu committed 2024-04-19 21:33:31 +08:00
1 parent 370e4ce98d
commit 59fbcb18d5
5 files changed
+24 -19

No files matched your search

+2 -2
View File
@@ -222,7 +222,7 @@ func (t *txInputSet) enoughInput() bool {
// We did not have enough input for a change output. Check if we have
// enough input to pay the fees for a transaction with no change
// output.
fee := t.weightEstimate(false).fee()
fee := t.weightEstimate(false).feeWithParent()
if t.inputTotal < t.requiredOutput+fee {
return false
}
@@ -289,7 +289,7 @@ func (t *txInputSet) addToState(inp input.Input,
newSet.inputTotal += value
// Recalculate the tx fee.
fee := newSet.weightEstimate(true).fee()
fee := newSet.weightEstimate(true).feeWithParent()
// Calculate the new output value.
if reqOut != nil {