+ /// Force closes a channel, immediately broadcasting the latest local commitment transaction to
+ /// the chain and rejecting new HTLCs on the given channel. Fails if channel_id is unknown to the manager.
+ pub fn force_close_channel(&self, channel_id: &[u8; 32]) -> Result<(), APIError> {
+ let _consistency_lock = self.total_consistency_lock.read().unwrap();
+ self.force_close_channel_with_peer(channel_id, None)
+ }
+