@@ -163,6 +163,11 @@ var openChannelCommand = cli.Command{
163
163
"as a base and add the new channel output to " +
164
164
"it instead of creating a new, empty one." ,
165
165
},
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
+ },
166
171
},
167
172
Action : actionDecorator (openChannel ),
168
173
}
@@ -184,13 +189,14 @@ func openChannel(ctx *cli.Context) error {
184
189
185
190
minConfs := int32 (ctx .Uint64 ("min_confs" ))
186
191
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" ),
194
200
}
195
201
196
202
switch {
0 commit comments