Skip to content

Commit 5b2a6cc

Browse files
committed
f fix up docs val suggested
1 parent 726030d commit 5b2a6cc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -443,13 +443,13 @@ pub struct ChannelManager<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref,
443443
pending_inbound_payments: Mutex<HashMap<PaymentHash, PendingInboundPayment>>,
444444

445445
/// The session_priv bytes of outbound payments which are pending resolution.
446-
/// The authoritative of these HTLCs resides either within Channels or ChannelMonitors (if the
447-
/// channel has been force-closed), however we track them here to prevent duplicative
446+
/// The authoritative state of these HTLCs resides either within Channels or ChannelMonitors
447+
/// (if the channel has been force-closed), however we track them here to prevent duplicative
448448
/// PaymentSent/PaymentFailed events. Specifically, in the case of a duplicative
449449
/// update_fulfill_htlc message after a reconnect, we may "claim" a payment twice.
450-
/// Additionally, for channels which have been force-closed, because the ChannelMonitor event
451-
/// is ultimately handled by us, and we aren't supposed to generate duplicative events unless we
452-
/// haven't been re-serialized, we have to de-duplicate them here.
450+
/// Additionally, for channels which have been force-closed, a ChannelMonitor may not be
451+
/// re-serialized after generating a claim event (even if this ChannelManager is), resulting in
452+
/// us "claiming" a payment twice.
453453
/// Locked *after* channel_state.
454454
outbound_pending_payments: Mutex<HashSet<[u8; 32]>>,
455455

0 commit comments

Comments
 (0)