@@ -270,9 +270,7 @@ pub struct UpdateChannelConfigRequest {
270
270
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
271
271
pub struct UpdateChannelConfigResponse { }
272
272
/// Closes the channel specified by given request.
273
- /// See more:
274
- /// - <https://docs.rs/ldk-node/latest/ldk_node/struct.Node.html#method.close_channel>
275
- /// - <https://docs.rs/ldk-node/latest/ldk_node/struct.Node.html#method.force_close_channel>
273
+ /// See more: <https://docs.rs/ldk-node/latest/ldk_node/struct.Node.html#method.close_channel>
276
274
#[ allow( clippy:: derive_partial_eq_without_eq) ]
277
275
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
278
276
pub struct CloseChannelRequest {
@@ -282,18 +280,32 @@ pub struct CloseChannelRequest {
282
280
/// The hex-encoded public key of the node to close a channel with.
283
281
#[ prost( string, tag = "2" ) ]
284
282
pub counterparty_node_id : :: prost:: alloc:: string:: String ,
285
- /// Whether to force close the specified channel.
286
- #[ prost( bool , optional, tag = "3" ) ]
287
- pub force_close : :: core:: option:: Option < bool > ,
288
- /// The reason for force-closing, can only be set while force closing a channel.
289
- #[ prost( string, optional, tag = "4" ) ]
290
- pub force_close_reason : :: core:: option:: Option < :: prost:: alloc:: string:: String > ,
291
283
}
292
284
/// The response `content` for the `CloseChannel` API, when HttpStatusCode is OK (200).
293
285
/// When HttpStatusCode is not OK (non-200), the response `content` contains a serialized `ErrorResponse`.
294
286
#[ allow( clippy:: derive_partial_eq_without_eq) ]
295
287
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
296
288
pub struct CloseChannelResponse { }
289
+ /// Force closes the channel specified by given request.
290
+ /// See more: <https://docs.rs/ldk-node/latest/ldk_node/struct.Node.html#method.force_close_channel>
291
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
292
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
293
+ pub struct ForceCloseChannelRequest {
294
+ /// The local `user_channel_id` of this channel.
295
+ #[ prost( string, tag = "1" ) ]
296
+ pub user_channel_id : :: prost:: alloc:: string:: String ,
297
+ /// The hex-encoded public key of the node to close a channel with.
298
+ #[ prost( string, tag = "2" ) ]
299
+ pub counterparty_node_id : :: prost:: alloc:: string:: String ,
300
+ /// The reason for force-closing.
301
+ #[ prost( string, optional, tag = "3" ) ]
302
+ pub force_close_reason : :: core:: option:: Option < :: prost:: alloc:: string:: String > ,
303
+ }
304
+ /// The response `content` for the `ForceCloseChannel` API, when HttpStatusCode is OK (200).
305
+ /// When HttpStatusCode is not OK (non-200), the response `content` contains a serialized `ErrorResponse`.
306
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
307
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
308
+ pub struct ForceCloseChannelResponse { }
297
309
/// Returns a list of known channels.
298
310
/// See more: <https://docs.rs/ldk-node/latest/ldk_node/struct.Node.html#method.list_channels>
299
311
#[ allow( clippy:: derive_partial_eq_without_eq) ]
0 commit comments