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:
yyforyongyu
2023-10-26 15:13:23 +08:00
parent 8b876be3b6
commit a8f5a09dea
5 changed files with 33 additions and 146 deletions

View File

@@ -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,