mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-03 02:02:17 +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:
@@ -5,15 +5,16 @@ import "github.com/lightningnetwork/lnd/lnrpc/walletrpc"
|
||||
// PendingSweep is a CLI-friendly type of the walletrpc.PendingSweep proto. We
|
||||
// use this to show more useful string versions of byte slices and enums.
|
||||
type PendingSweep struct {
|
||||
OutPoint OutPoint `json:"outpoint"`
|
||||
WitnessType string `json:"witness_type"`
|
||||
AmountSat uint32 `json:"amount_sat"`
|
||||
SatPerVByte uint32 `json:"sat_per_vbyte"`
|
||||
BroadcastAttempts uint32 `json:"broadcast_attempts"`
|
||||
NextBroadcastHeight uint32 `json:"next_broadcast_height"`
|
||||
RequestedSatPerVByte uint32 `json:"requested_sat_per_vbyte"`
|
||||
RequestedConfTarget uint32 `json:"requested_conf_target"`
|
||||
Force bool `json:"force"`
|
||||
OutPoint OutPoint `json:"outpoint"`
|
||||
WitnessType string `json:"witness_type"`
|
||||
AmountSat uint32 `json:"amount_sat"`
|
||||
SatPerVByte uint32 `json:"sat_per_vbyte"`
|
||||
BroadcastAttempts uint32 `json:"broadcast_attempts"`
|
||||
// TODO(yy): deprecate.
|
||||
NextBroadcastHeight uint32 `json:"next_broadcast_height"`
|
||||
RequestedSatPerVByte uint32 `json:"requested_sat_per_vbyte"`
|
||||
RequestedConfTarget uint32 `json:"requested_conf_target"`
|
||||
Force bool `json:"force"`
|
||||
}
|
||||
|
||||
// NewPendingSweepFromProto converts the walletrpc.PendingSweep proto type into
|
||||
|
Reference in New Issue
Block a user