mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-06 17:47:01 +02:00
contractcourt: remove 2xamount requirement for the sweeper.
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user