wtdb: create and remove tower should no longer change session status

This commit is contained in:
Elle Mouton
2023-11-27 16:43:32 +02:00
parent cbf08940ca
commit 41582c0b8b
3 changed files with 18 additions and 66 deletions

View File

@@ -26,10 +26,9 @@ type DB interface {
// RemoveTower modifies a tower's record within the database. If an
// address is provided, then _only_ the address record should be removed
// from the tower's persisted state. Otherwise, we'll attempt to mark
// the tower as inactive by marking all of its sessions inactive. If any
// of its sessions has unacked updates, then ErrTowerUnackedUpdates is
// returned. If the tower doesn't have any sessions at all, it'll be
// completely removed from the database.
// the tower as inactive. If any of its sessions have unacked updates,
// then ErrTowerUnackedUpdates is returned. If the tower doesn't have
// any sessions at all, it'll be completely removed from the database.
//
// NOTE: An error is not returned if the tower doesn't exist.
RemoveTower(*btcec.PublicKey, net.Addr) error