@@ -270,9 +270,7 @@ pub struct UpdateChannelConfigRequest {
270270#[ derive( Clone , PartialEq , :: prost:: Message ) ]
271271pub struct UpdateChannelConfigResponse { }
272272/// 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>
276274#[ allow( clippy:: derive_partial_eq_without_eq) ]
277275#[ derive( Clone , PartialEq , :: prost:: Message ) ]
278276pub struct CloseChannelRequest {
@@ -282,18 +280,32 @@ pub struct CloseChannelRequest {
282280 /// The hex-encoded public key of the node to close a channel with.
283281 #[ prost( string, tag = "2" ) ]
284282 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 > ,
291283}
292284/// The response `content` for the `CloseChannel` API, when HttpStatusCode is OK (200).
293285/// When HttpStatusCode is not OK (non-200), the response `content` contains a serialized `ErrorResponse`.
294286#[ allow( clippy:: derive_partial_eq_without_eq) ]
295287#[ derive( Clone , PartialEq , :: prost:: Message ) ]
296288pub 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 { }
297309/// Returns a list of known channels.
298310/// See more: <https://docs.rs/ldk-node/latest/ldk_node/struct.Node.html#method.list_channels>
299311#[ allow( clippy:: derive_partial_eq_without_eq) ]
0 commit comments