cmd/lncli: add cli support for the push-during-funding workflow
This commit is contained in:
parent
9965640349
commit
b01e7efcef
@ -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")),
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user