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 " + "channel is open, a channelPoint (txid:vout) of the funding " +
"output is returned. NOTE: peer_id and node_key are " + "output is returned. NOTE: peer_id and node_key are " +
"mutually exclusive, only one should be used, not both.", "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{ Flags: []cli.Flag{
cli.IntFlag{ cli.IntFlag{
Name: "peer_id", Name: "peer_id",
@ -323,12 +323,6 @@ var openChannelCommand = cli.Command{
Usage: "the number of satoshis to push to the remote " + Usage: "the number of satoshis to push to the remote " +
"side as part of the initial commitment state", "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{ cli.BoolFlag{
Name: "block", Name: "block",
Usage: "block and wait until the channel is fully open", 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") "at the same time, only one can be specified")
} }
req := &lnrpc.OpenChannelRequest{ req := &lnrpc.OpenChannelRequest{}
NumConfs: uint32(ctx.Int("num_confs")),
}
switch { switch {
case ctx.IsSet("peer_id"): case ctx.IsSet("peer_id"):