Commit Graph

73 Commits

Author SHA1 Message Date
65435bd8e6 cmd/lncli: close sendpayment stream after recv
We now close the send payment stream after receiving a response.
Otherwise if the RPC server is asynchronously handling requests then,
closing the stream would result in the server returning an EOF error,
terminating the request.
2016-07-21 16:18:56 -07:00
14aadc8c2e cmd/lncli: add validation of address for connectpeer 2016-07-16 17:43:47 -07:00
2926988710 cmd/lncli: implement one-off HTLC payments 2016-07-12 17:47:30 -07:00
40d9f0da31 cmd/lncli: implement pendingchannels for the cli client 2016-07-07 15:36:42 -07:00
a4e92fac8e cmd/lncli: implement async+sync calls to [open|close]channel 2016-07-07 15:35:10 -07:00
4d7bd2eb5d cmd/lncli: implement cli "getting" call 2016-07-05 18:58:49 -07:00
96667cbc4a cmd/lncli: update action func to new upstream signature
The upstream cli repo has changed the signature for the ‘Action’ to
return an additional error. Thankfully this was done in a backwards
compatible manner.

This commit updates all the command action functions to adhere to the
new function signature.

In the future we’ll have proper dependency management so cases like
this will be avoided all together.
2016-06-29 13:01:40 -07:00
e391cf088e cmd/lncli: add support for the sendcoins RPC 2016-06-29 11:29:29 -07:00
6b53b393df cmd/lncli: add json attribute tag for anonymous ChannelPoint struct 2016-06-22 21:48:39 -07:00
7e09a70706 cmd/lncli: properly reverse user txid input
This commit fixes a bug introduced within a prior commit. The prior
commit failed to drollery reverse the txid string taken in as user
input, therefore in order to properly close a channel, the user needed
to manually reverse the txid themselves.

With this change, `wire.NewShaHashFromStr` is used which properly
reverses the string within the constructor. This allows the string
reported not be directly used to the close an active channel.

This commit also corrects a few logging messages.
2016-06-22 11:10:33 -07:00
8066195d23 cmd/lncli: implement remaining RPC commands
Currently positional arguments *are not* supported, and all arguments
must be passed via unix-style command line arguments.

In a later commit support for concurrent positional, and manually
specified arguments will be added.
2016-06-21 13:14:19 -07:00
35bbf53e59 cmd/lncli: command line parsing for address types for 'newaddress' 2016-04-24 20:27:19 -07:00
78c6053ba6 cmd/lncli: default RPC port is now 10009 2016-03-22 18:47:10 -07:00
5bddb611dc Fix build issue for lncli
Error message:

cmd/lncli/commands.go:27: undefined: shell
2016-01-17 19:18:08 -08:00
4b696f1690 lncli: remove shell.go, lnshell is a separate package now 2016-01-16 19:29:03 -08:00
701de388a0 lncli: add "connect" command
usage: lncli connect <lnid>@host:port

Currently one must specify port since we haven’t yet chosen an
“official” p2p port
2016-01-16 19:29:03 -08:00
2815afebb7 update imports to github 2016-01-16 10:45:54 -08:00
20e367c4e7 lncli: note to self about future auth 2016-01-14 23:56:08 -08:00
8a50faaf47 add functions to rpc.proto, start lnshell 2016-01-14 23:55:45 -08:00
6647bdd2b8 trying to get shell to connect over grpc 2016-01-14 23:55:45 -08:00
31f3df2183 add gitignore, cli shell 2015-12-30 16:19:09 -04:00
d3da6e8f42 cmd/lncli: properly pretty print json response 2015-12-29 20:58:58 -06:00
f2d3c2455b cmd/lncli: add new package, implements cli for plasma 2015-12-29 20:35:49 -06:00