server+lncfg: make sweepr batch window duration configurable
This commit is contained in:
4 files changed
+34
-1
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user