From b01e7efcef3c9e1477e47248883e1a0e3942634d Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 9 Jan 2017 19:06:07 -0800 Subject: [PATCH] cmd/lncli: add cli support for the push-during-funding workflow --- cmd/lncli/commands.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index d40412a1..bcff144c 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -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", @@ -215,9 +216,9 @@ func openChannel(ctx *cli.Context) error { } req := &lnrpc.OpenChannelRequest{ - LocalFundingAmount: int64(ctx.Int("local_amt")), - RemoteFundingAmount: int64(ctx.Int("remote_amt")), - NumConfs: uint32(ctx.Int("num_confs")), + LocalFundingAmount: int64(ctx.Int("local_amt")), + PushSat: int64(ctx.Int("push_amt")), + NumConfs: uint32(ctx.Int("num_confs")), } if ctx.Int("peer_id") != 0 {