server+lncfg: make sweepr batch window duration configurable

This commit is contained in:
yyforyongyu committed 2022-09-01 10:44:29 +08:00
1 parent 1aa4d047fe
commit 2f27a52f7f
4 files changed
+34 -1

No files matched your search

+1 -1
View File
@@ -1004,7 +1004,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
Signer: cc.Wallet.Cfg.Signer,
Wallet: cc.Wallet,
NewBatchTimer: func() <-chan time.Time {
return time.NewTimer(sweep.DefaultBatchWindowDuration).C
return time.NewTimer(cfg.Sweeper.BatchWindowDuration).C
},
Notifier: cc.ChainNotifier,
Store: sweeperStore,