lnd+sweep: remove unused NextAttemptDeltaFunc

This commit is contained in:
yyforyongyu committed 2024-04-19 21:33:23 +08:00
1 parent 5496d02b27
commit b5e4384e24
3 files changed
+15 -33

No files matched your search

+12 -13
View File
@@ -1068,19 +1068,18 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
)
s.sweeper = sweep.New(&sweep.UtxoSweeperConfig{
FeeEstimator: cc.FeeEstimator,
GenSweepScript: newSweepPkScriptGen(cc.Wallet),
Signer: cc.Wallet.Cfg.Signer,
Wallet: newSweeperWallet(cc.Wallet),
TickerDuration: cfg.Sweeper.BatchWindowDuration,
Mempool: cc.MempoolNotifier,
Notifier: cc.ChainNotifier,
Store: sweeperStore,
MaxInputsPerTx: sweep.DefaultMaxInputsPerTx,
MaxSweepAttempts: sweep.DefaultMaxSweepAttempts,
NextAttemptDeltaFunc: sweep.DefaultNextAttemptDeltaFunc,
MaxFeeRate: cfg.Sweeper.MaxFeeRate,
Aggregator: aggregator,
FeeEstimator: cc.FeeEstimator,
GenSweepScript: newSweepPkScriptGen(cc.Wallet),
Signer: cc.Wallet.Cfg.Signer,
Wallet: newSweeperWallet(cc.Wallet),
TickerDuration: cfg.Sweeper.BatchWindowDuration,
Mempool: cc.MempoolNotifier,
Notifier: cc.ChainNotifier,
Store: sweeperStore,
MaxInputsPerTx: sweep.DefaultMaxInputsPerTx,
MaxSweepAttempts: sweep.DefaultMaxSweepAttempts,
MaxFeeRate: cfg.Sweeper.MaxFeeRate,
Aggregator: aggregator,
})
s.utxoNursery = contractcourt.NewUtxoNursery(&contractcourt.NurseryConfig{