Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2156,9 +2156,18 @@ impl Node {
// dropping it. This lets `channel_reestablish` drive the recovery flow, which is
// especially important against LND peers that don't always handle force-closure
// error messages correctly.
}

Ok(())
Ok(())
} else {
log_error!(
self.logger,
"Failed to {} channel: no matching channel found for user_channel_id {} and counterparty {}",
if force { "force-close" } else { "close" },
user_channel_id,
counterparty_node_id
);
Err(Error::ChannelClosingFailed)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should always at least log what/why it failed when we return an error.

}
}

/// Update the config for a previously opened channel.
Expand Down
Loading