mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-28 13:52:55 +02:00
watchtower: add filter function to ListTowers
And then only load active towers on client start up.
This commit is contained in:
@@ -455,7 +455,7 @@ func (m *Manager) Stats() ClientStats {
|
||||
func (m *Manager) RegisteredTowers(opts ...wtdb.ClientSessionListOption) (
|
||||
map[blob.Type][]*RegisteredTower, error) {
|
||||
|
||||
towers, err := m.cfg.DB.ListTowers()
|
||||
towers, err := m.cfg.DB.ListTowers(nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user