cmd/lncli: add cli support for the push-during-funding workflow

This commit is contained in:
Olaoluwa Osuntokun 2017-01-09 19:06:07 -08:00
parent 9965640349
commit b01e7efcef
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -188,8 +188,9 @@ var OpenChannelCommand = cli.Command{
Usage: "the number of satoshis the wallet should commit to the channel",
},
cli.IntFlag{
Name: "remote_amt",
Usage: "the number of satoshis the remote peer should commit to the channel",
Name: "push_amt",
Usage: "the number of satoshis to push to the remote " +
"side as part of the initial commitment state",
},
cli.IntFlag{
Name: "num_confs",
@ -216,7 +217,7 @@ func openChannel(ctx *cli.Context) error {
req := &lnrpc.OpenChannelRequest{
LocalFundingAmount: int64(ctx.Int("local_amt")),
RemoteFundingAmount: int64(ctx.Int("remote_amt")),
PushSat: int64(ctx.Int("push_amt")),
NumConfs: uint32(ctx.Int("num_confs")),
}