cmd/lncli: update call to updated PendingChannels RPC

This commit is contained in:
Olaoluwa Osuntokun 2017-05-04 16:13:50 -07:00
parent ad2dc46ffe
commit f0bcfd02c4
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -664,19 +664,7 @@ func pendingChannels(ctx *cli.Context) error {
client, cleanUp := getClient(ctx) client, cleanUp := getClient(ctx)
defer cleanUp() defer cleanUp()
var channelStatus lnrpc.ChannelStatus req := &lnrpc.PendingChannelRequest{}
switch {
case ctx.Bool("all"):
channelStatus = lnrpc.ChannelStatus_ALL
case ctx.Bool("open"):
channelStatus = lnrpc.ChannelStatus_OPENING
case ctx.Bool("close"):
channelStatus = lnrpc.ChannelStatus_CLOSING
default:
channelStatus = lnrpc.ChannelStatus_ALL
}
req := &lnrpc.PendingChannelRequest{Status: channelStatus}
resp, err := client.PendingChannels(ctxb, req) resp, err := client.PendingChannels(ctxb, req)
if err != nil { if err != nil {
return err return err