Skip to content

Commit 72c29ff

Browse files
committed
f nits
1 parent 6741021 commit 72c29ff

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5660,7 +5660,7 @@ impl<Signer: Sign, M: Deref , T: Deref , K: Deref , F: Deref , L: Deref >
56605660
let _ = handle_error!(self, self.internal_channel_reestablish(counterparty_node_id, msg), *counterparty_node_id);
56615661
}
56625662

5663-
fn peer_disconnected(&self, counterparty_node_id: &PublicKey, _no_connection_possible: bool) {
5663+
fn peer_disconnected(&self, counterparty_node_id: &PublicKey, no_connection_possible: bool) {
56645664
let _persistence_guard = PersistenceNotifierGuard::notify_on_drop(&self.total_consistency_lock, &self.persistence_notifier);
56655665
let mut failed_channels = Vec::new();
56665666
let mut no_channels_remain = true;
@@ -5669,7 +5669,8 @@ impl<Signer: Sign, M: Deref , T: Deref , K: Deref , F: Deref , L: Deref >
56695669
let channel_state = &mut *channel_state_lock;
56705670
let pending_msg_events = &mut channel_state.pending_msg_events;
56715671
let short_to_id = &mut channel_state.short_to_id;
5672-
log_debug!(self.logger, "Marking channels with {} disconnected and generating channel_updates", log_pubkey!(counterparty_node_id));
5672+
log_debug!(self.logger, "Marking channels with {} disconnected and generating channel_updates. We believe we {} make future connections to this peer.",
5673+
log_pubkey!(counterparty_node_id), if no_connection_possible { "cannot" } else { "can" });
56735674
channel_state.by_id.retain(|_, chan| {
56745675
if chan.get_counterparty_node_id() == *counterparty_node_id {
56755676
chan.remove_uncommitted_htlcs_and_mark_paused(&self.logger);

lightning/src/ln/peer_handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ pub trait SocketDescriptor : cmp::Eq + hash::Hash + Clone {
258258
#[derive(Clone)]
259259
pub struct PeerHandleError {
260260
/// Used to indicate that we probably can't make any future connections to this peer (eg
261-
/// because some of our/their required features were not implemented by them/us).
261+
/// because one of us or our peer had required features that the other was missing).
262262
///
263263
/// While LDK's [`ChannelManager`] will not do it automatically, you likely wish to force-close
264264
/// any channels with this peer or check for new versions of LDK.

lightning/src/util/events.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pub enum ClosureReason {
103103
/// The peer disconnected prior to funding completing. In this case the spec mandates that we
104104
/// forget the channel entirely - we can attempt again if the peer reconnects.
105105
///
106-
/// In LDK versions prior to 0.0.107 this could also occurr if we were unable to connect to the
106+
/// In LDK versions prior to 0.0.107 this could also occur if we were unable to connect to the
107107
/// peer because of mutual incompatibility between us and our channel counterparty.
108108
DisconnectedPeer,
109109
/// Closure generated from `ChannelManager::read` if the ChannelMonitor is newer than

0 commit comments

Comments
 (0)