lightningnetwork / lnd

Lightning Network Daemon ⚡️
MIT License
7.63k stars 2.07k forks source link

[bug]: watchtower sessions are not reused after deactivation/activation #8932

Open michaelWuensch opened 1 month ago

michaelWuensch commented 1 month ago

Background

During testing I deactivated (NOT REMOVED) a watchtower and activated it again (with AddWatchtower). Everytime I do so, three new Sessions are added. One for each type.

Your environment

Steps to reproduce

This is how I did it. It can probably be done without an Umbrel

Expected behaviour

As I understood it in contrary to RemoveWatchtower, deactvating and adding a watchtower should continue to use the already established sessions instead of discarding them an creating new ones. If it does not, then I do not see the difference between RemoveWatchtower and DeactivateWatchtower.

Actual behaviour

It creates new Sessions each time.

ffranr commented 1 month ago

@michaelWuensch thanks for opening the issue, I've notified the team.