From 78ef09c9d35458fc7a84d5b60ccb4120d2b32d5b Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sat, 17 Feb 2018 15:42:17 -0800 Subject: [PATCH] cmd/lncli: remove the --witness_only flag from walletbalance This flag is no longer needed, as the call will now only return the active segwit balance. --- cmd/lncli/commands.go | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index 201ec2d6..67123d36 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -1044,15 +1044,8 @@ func unlock(ctx *cli.Context) error { } var walletBalanceCommand = cli.Command{ - Name: "walletbalance", - Usage: "Compute and display the wallet's current balance", - Flags: []cli.Flag{ - cli.BoolFlag{ - Name: "witness_only", - Usage: "if only witness outputs should be considered when " + - "calculating the wallet's balance", - }, - }, + Name: "walletbalance", + Usage: "Compute and display the wallet's current balance", Action: actionDecorator(walletBalance), } @@ -1061,9 +1054,7 @@ func walletBalance(ctx *cli.Context) error { client, cleanUp := getClient(ctx) defer cleanUp() - req := &lnrpc.WalletBalanceRequest{ - WitnessOnly: ctx.Bool("witness_only"), - } + req := &lnrpc.WalletBalanceRequest{} resp, err := client.WalletBalance(ctxb, req) if err != nil { return err