Cmd/lncli: remove num_confs as a param to the openchannel command

This commit is contained in:
Olaoluwa Osuntokun 2017-07-30 14:23:29 -07:00
parent 43b40c2ba2
commit 0dfe73386b
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -303,7 +303,7 @@ var openChannelCommand = cli.Command{
"channel is open, a channelPoint (txid:vout) of the funding " +
"output is returned. NOTE: peer_id and node_key are " +
"mutually exclusive, only one should be used, not both.",
ArgsUsage: "node-key local-amt push-amt [num-confs]",
ArgsUsage: "node-key local-amt push-amt",
Flags: []cli.Flag{
cli.IntFlag{
Name: "peer_id",
@ -323,12 +323,6 @@ var openChannelCommand = cli.Command{
Usage: "the number of satoshis to push to the remote " +
"side as part of the initial commitment state",
},
cli.IntFlag{
Name: "num_confs",
Usage: "the number of confirmations required before the " +
"channel is considered 'open'",
Value: 1,
},
cli.BoolFlag{
Name: "block",
Usage: "block and wait until the channel is fully open",
@ -357,9 +351,7 @@ func openChannel(ctx *cli.Context) error {
"at the same time, only one can be specified")
}
req := &lnrpc.OpenChannelRequest{
NumConfs: uint32(ctx.Int("num_confs")),
}
req := &lnrpc.OpenChannelRequest{}
switch {
case ctx.IsSet("peer_id"):