Skip to content

Update wtclient.go #9588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions cmd/commands/wtclient.go
Original file line number Diff line number Diff line change
@@ -376,15 +376,23 @@ func policy(ctx *cli.Context) error {
}

var sessionCommands = cli.Command{
Name: "session",
Name: "session",
Usage: "Manage watchtower client sessions.",
Description: "This command allows users " +
"to manage their watchtower client sessions," +
"specifically to terminate an active session",
Subcommands: []cli.Command{
terminateSessionCommand,
},
}

var terminateSessionCommand = cli.Command{
Name: "terminate",
ArgsUsage: "id",
Name: "terminate",
Usage: "Terminate an active watchtower session.",
Description: "This command ends a session using " +
"its unique session ID. It stops further backups " +
"but does not affect past backup data",
ArgsUsage: "session_id",
Action: actionDecorator(terminateSession),
}

5 changes: 5 additions & 0 deletions docs/release-notes/release-notes-0.19.0.md
Original file line number Diff line number Diff line change
@@ -270,6 +270,11 @@ The underlying functionality between those two options remain the same.
[1](https://github.com/lightningnetwork/lnd/pull/9476)
[2](https://github.com/lightningnetwork/lnd/pull/9477)
[3](https://github.com/lightningnetwork/lnd/pull/9478).

* [Watchtower Client Commands](https://github.com/lightningnetwork/lnd/pull/9588): -
Added detailed descriptions for the session and terminate commands in lncli wtclient.
The session command now explains its purpose and how it manages watchtower sessions.
The terminate command provides clear guidance on terminating an active session by specifying its unique session ID.

## Breaking Changes
## Performance Improvements