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.
This commit is contained in:
Olaoluwa Osuntokun 2018-02-17 15:42:17 -08:00
parent f2192f1b90
commit 78ef09c9d3
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -1044,15 +1044,8 @@ func unlock(ctx *cli.Context) error {
} }
var walletBalanceCommand = cli.Command{ var walletBalanceCommand = cli.Command{
Name: "walletbalance", Name: "walletbalance",
Usage: "Compute and display the wallet's current balance", 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",
},
},
Action: actionDecorator(walletBalance), Action: actionDecorator(walletBalance),
} }
@ -1061,9 +1054,7 @@ func walletBalance(ctx *cli.Context) error {
client, cleanUp := getClient(ctx) client, cleanUp := getClient(ctx)
defer cleanUp() defer cleanUp()
req := &lnrpc.WalletBalanceRequest{ req := &lnrpc.WalletBalanceRequest{}
WitnessOnly: ctx.Bool("witness_only"),
}
resp, err := client.WalletBalance(ctxb, req) resp, err := client.WalletBalance(ctxb, req)
if err != nil { if err != nil {
return err return err