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{
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