Merge pull request #9274 from ziggie1984/remove-2x-value

The sweeper subsystem uses now also the configured budget values for HTLCs
This commit is contained in:
Elle authored and GitHub committed 2025-01-13 19:09:11 +02:00
commit e9dd01b60d
3 files changed
+9 -22

No files matched your search

+1 -6
View File
@@ -928,12 +928,7 @@ func testSweepHTLCs(ht *lntest.HarnessTest) {
require.Len(ht, outgoingSweep.TxOut, 2)
// Calculate the ending fee rate.
//
// TODO(yy): the budget we use to sweep the first-level outgoing HTLC
// is twice its value. This is a temporary mitigation to prevent
// cascading FCs and the test should be updated once it's properly
// fixed.
outgoingBudget := 2 * invoiceAmt
outgoingBudget := invoiceAmt.MulF64(contractcourt.DefaultBudgetRatio)
outgoingTxSize := ht.CalculateTxWeight(outgoingSweep)
outgoingEndFeeRate := chainfee.NewSatPerKWeight(
outgoingBudget, outgoingTxSize,