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", Usage: "the number of satoshis the wallet should commit to the channel",
}, },
cli.IntFlag{ cli.IntFlag{
Name: "remote_amt", Name: "push_amt",
Usage: "the number of satoshis the remote peer should commit to the channel", Usage: "the number of satoshis to push to the remote " +
"side as part of the initial commitment state",
}, },
cli.IntFlag{ cli.IntFlag{
Name: "num_confs", Name: "num_confs",
@ -215,9 +216,9 @@ func openChannel(ctx *cli.Context) error {
} }
req := &lnrpc.OpenChannelRequest{ req := &lnrpc.OpenChannelRequest{
LocalFundingAmount: int64(ctx.Int("local_amt")), LocalFundingAmount: int64(ctx.Int("local_amt")),
RemoteFundingAmount: int64(ctx.Int("remote_amt")), PushSat: int64(ctx.Int("push_amt")),
NumConfs: uint32(ctx.Int("num_confs")), NumConfs: uint32(ctx.Int("num_confs")),
} }
if ctx.Int("peer_id") != 0 { if ctx.Int("peer_id") != 0 {