mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-01 11:00:51 +02:00
lnd+sweep: remove unused config MaxSweepAttempts
This commit is contained in:
@ -1084,7 +1084,6 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
|
|||||||
Notifier: cc.ChainNotifier,
|
Notifier: cc.ChainNotifier,
|
||||||
Store: sweeperStore,
|
Store: sweeperStore,
|
||||||
MaxInputsPerTx: sweep.DefaultMaxInputsPerTx,
|
MaxInputsPerTx: sweep.DefaultMaxInputsPerTx,
|
||||||
MaxSweepAttempts: sweep.DefaultMaxSweepAttempts,
|
|
||||||
MaxFeeRate: cfg.Sweeper.MaxFeeRate,
|
MaxFeeRate: cfg.Sweeper.MaxFeeRate,
|
||||||
Aggregator: aggregator,
|
Aggregator: aggregator,
|
||||||
Publisher: s.txPublisher,
|
Publisher: s.txPublisher,
|
||||||
|
@ -36,11 +36,6 @@ var (
|
|||||||
// it is/has already been stopped.
|
// it is/has already been stopped.
|
||||||
ErrSweeperShuttingDown = errors.New("utxo sweeper shutting down")
|
ErrSweeperShuttingDown = errors.New("utxo sweeper shutting down")
|
||||||
|
|
||||||
// DefaultMaxSweepAttempts specifies the default maximum number of times
|
|
||||||
// an input is included in a publish attempt before giving up and
|
|
||||||
// returning an error to the caller.
|
|
||||||
DefaultMaxSweepAttempts = 10
|
|
||||||
|
|
||||||
// DefaultDeadlineDelta defines a default deadline delta (1 week) to be
|
// DefaultDeadlineDelta defines a default deadline delta (1 week) to be
|
||||||
// used when sweeping inputs with no deadline pressure.
|
// used when sweeping inputs with no deadline pressure.
|
||||||
//
|
//
|
||||||
@ -361,11 +356,6 @@ type UtxoSweeperConfig struct {
|
|||||||
// created and published.
|
// created and published.
|
||||||
MaxInputsPerTx uint32
|
MaxInputsPerTx uint32
|
||||||
|
|
||||||
// MaxSweepAttempts specifies the maximum number of times an input is
|
|
||||||
// included in a publish attempt before giving up and returning an error
|
|
||||||
// to the caller.
|
|
||||||
MaxSweepAttempts int
|
|
||||||
|
|
||||||
// MaxFeeRate is the maximum fee rate allowed within the UtxoSweeper.
|
// MaxFeeRate is the maximum fee rate allowed within the UtxoSweeper.
|
||||||
MaxFeeRate chainfee.SatPerVByte
|
MaxFeeRate chainfee.SatPerVByte
|
||||||
|
|
||||||
|
@ -161,7 +161,6 @@ func createSweeperTestContext(t *testing.T) *sweeperTestContext {
|
|||||||
},
|
},
|
||||||
FeeEstimator: estimator,
|
FeeEstimator: estimator,
|
||||||
MaxInputsPerTx: testMaxInputsPerTx,
|
MaxInputsPerTx: testMaxInputsPerTx,
|
||||||
MaxSweepAttempts: testMaxSweepAttempts,
|
|
||||||
MaxFeeRate: DefaultMaxFeeRate,
|
MaxFeeRate: DefaultMaxFeeRate,
|
||||||
Aggregator: aggregator,
|
Aggregator: aggregator,
|
||||||
Publisher: mockBumper,
|
Publisher: mockBumper,
|
||||||
|
Reference in New Issue
Block a user