cmd/lncli: update call to updated PendingChannels RPC
This commit is contained in:
parent
ad2dc46ffe
commit
f0bcfd02c4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user