mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-06 10:52:01 +01:00
cmd/lncli: print new status responses to CLI
This commit is contained in:
@@ -2128,11 +2128,13 @@ func stopDaemon(ctx *cli.Context) error {
|
||||
client, cleanUp := getClient(ctx)
|
||||
defer cleanUp()
|
||||
|
||||
_, err := client.StopDaemon(ctxc, &lnrpc.StopRequest{})
|
||||
resp, err := client.StopDaemon(ctxc, &lnrpc.StopRequest{})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
printRespJSON(resp)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -2997,10 +2999,12 @@ func restoreChanBackup(ctx *cli.Context) error {
|
||||
|
||||
req.Backup = backups.Backup
|
||||
|
||||
_, err = client.RestoreChannelBackups(ctxc, &req)
|
||||
resp, err := client.RestoreChannelBackups(ctxc, &req)
|
||||
if err != nil {
|
||||
return fmt.Errorf("unable to restore chan backups: %w", err)
|
||||
}
|
||||
|
||||
printRespJSON(resp)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user