Skip to content

Commit 6845763

Browse files
committed
lncli: Add max_value_in_flight flag to openchannel
1 parent 8ebdfe3 commit 6845763

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

cmd/lncli/cmd_open_channel.go

+13-7
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ var openChannelCommand = cli.Command{
163163
"as a base and add the new channel output to " +
164164
"it instead of creating a new, empty one.",
165165
},
166+
cli.Uint64Flag{
167+
Name: "remote_max_value_in_flight_msat",
168+
Usage: "(optional) the maximum value in msat that " +
169+
"can be pending within the channel at any given time",
170+
},
166171
},
167172
Action: actionDecorator(openChannel),
168173
}
@@ -184,13 +189,14 @@ func openChannel(ctx *cli.Context) error {
184189

185190
minConfs := int32(ctx.Uint64("min_confs"))
186191
req := &lnrpc.OpenChannelRequest{
187-
TargetConf: int32(ctx.Int64("conf_target")),
188-
SatPerByte: ctx.Int64("sat_per_byte"),
189-
MinHtlcMsat: ctx.Int64("min_htlc_msat"),
190-
RemoteCsvDelay: uint32(ctx.Uint64("remote_csv_delay")),
191-
MinConfs: minConfs,
192-
SpendUnconfirmed: minConfs == 0,
193-
CloseAddress: ctx.String("close_address"),
192+
TargetConf: int32(ctx.Int64("conf_target")),
193+
SatPerByte: ctx.Int64("sat_per_byte"),
194+
MinHtlcMsat: ctx.Int64("min_htlc_msat"),
195+
RemoteCsvDelay: uint32(ctx.Uint64("remote_csv_delay")),
196+
MinConfs: minConfs,
197+
SpendUnconfirmed: minConfs == 0,
198+
CloseAddress: ctx.String("close_address"),
199+
RemoteMaxValueInFlightMsat: ctx.Uint64("remote_max_value_in_flight_msat"),
194200
}
195201

196202
switch {

0 commit comments

Comments
 (0)