mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-25 16:30:53 +02:00
sweep: don't give up an input based on number of attempts
This commit removes the logic where we remove an input when it's been published more than 10 times. This is needed as in our future fee bumper, we might start with a low fee and rebroadcast the same input for hundred of blocks.
This commit is contained in:
@@ -882,7 +882,6 @@ func (w *WalletKit) PendingSweeps(ctx context.Context,
|
||||
amountSat := uint32(pendingInput.Amount)
|
||||
satPerVbyte := uint64(pendingInput.LastFeeRate.FeePerVByte())
|
||||
broadcastAttempts := uint32(pendingInput.BroadcastAttempts)
|
||||
nextBroadcastHeight := uint32(pendingInput.NextBroadcastHeight)
|
||||
|
||||
feePref := pendingInput.Params.Fee
|
||||
requestedFee, ok := feePref.(sweep.FeeEstimateInfo)
|
||||
@@ -899,7 +898,6 @@ func (w *WalletKit) PendingSweeps(ctx context.Context,
|
||||
AmountSat: amountSat,
|
||||
SatPerVbyte: satPerVbyte,
|
||||
BroadcastAttempts: broadcastAttempts,
|
||||
NextBroadcastHeight: nextBroadcastHeight,
|
||||
RequestedSatPerVbyte: requestedFeeRate,
|
||||
RequestedConfTarget: requestedFee.ConfTarget,
|
||||
Force: pendingInput.Params.Force,
|
||||
|
Reference in New Issue
Block a user