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:
5 files changed
+33
-146
No files matched your search
@@ -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