lncli: Add max_value_in_flight flag to openchannel
This commit is contained in:
parent
8ebdfe3128
commit
6845763aa5
@ -163,6 +163,11 @@ var openChannelCommand = cli.Command{
|
||||
"as a base and add the new channel output to " +
|
||||
"it instead of creating a new, empty one.",
|
||||
},
|
||||
cli.Uint64Flag{
|
||||
Name: "remote_max_value_in_flight_msat",
|
||||
Usage: "(optional) the maximum value in msat that " +
|
||||
"can be pending within the channel at any given time",
|
||||
},
|
||||
},
|
||||
Action: actionDecorator(openChannel),
|
||||
}
|
||||
@ -191,6 +196,7 @@ func openChannel(ctx *cli.Context) error {
|
||||
MinConfs: minConfs,
|
||||
SpendUnconfirmed: minConfs == 0,
|
||||
CloseAddress: ctx.String("close_address"),
|
||||
RemoteMaxValueInFlightMsat: ctx.Uint64("remote_max_value_in_flight_msat"),
|
||||
}
|
||||
|
||||
switch {
|
||||
|
Loading…
Reference in New Issue
Block a user