mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 23:21:12 +02:00
lnd+sweep: remove unused config MaxSweepAttempts
This commit is contained in:
@@ -36,11 +36,6 @@ var (
|
||||
// it is/has already been stopped.
|
||||
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
|
||||
// used when sweeping inputs with no deadline pressure.
|
||||
//
|
||||
@@ -361,11 +356,6 @@ type UtxoSweeperConfig struct {
|
||||
// created and published.
|
||||
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 chainfee.SatPerVByte
|
||||
|
||||
|
@@ -159,12 +159,11 @@ func createSweeperTestContext(t *testing.T) *sweeperTestContext {
|
||||
script[1] = 20
|
||||
return script, nil
|
||||
},
|
||||
FeeEstimator: estimator,
|
||||
MaxInputsPerTx: testMaxInputsPerTx,
|
||||
MaxSweepAttempts: testMaxSweepAttempts,
|
||||
MaxFeeRate: DefaultMaxFeeRate,
|
||||
Aggregator: aggregator,
|
||||
Publisher: mockBumper,
|
||||
FeeEstimator: estimator,
|
||||
MaxInputsPerTx: testMaxInputsPerTx,
|
||||
MaxFeeRate: DefaultMaxFeeRate,
|
||||
Aggregator: aggregator,
|
||||
Publisher: mockBumper,
|
||||
})
|
||||
|
||||
ctx.sweeper.Start()
|
||||
|
Reference in New Issue
Block a user