Skip to content

Commit 1495024

Browse files
committed
f Correct long-since stale comments Jeff pointed out
1 parent 1dda1d0 commit 1495024

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3074,8 +3074,8 @@ impl<ChanSigner: ChannelKeys, M: Deref + Sync + Send, T: Deref + Sync + Send, K:
30743074
}
30753075

30763076
for (source, payment_hash, value) in timed_out_htlcs.drain(..) {
3077-
// Call it preimage_unknown as the issue, ultimately, is that the user failed to
3078-
// provide us a preimage within the cltv_expiry time window.
3077+
// Call it incorrect_or_unknown_payment_details as the issue, ultimately, is that the
3078+
// user failed to provide us a preimage within the cltv_expiry time window.
30793079
let mut htlc_msat_height_data = byte_utils::be64_to_array(value).to_vec();
30803080
htlc_msat_height_data.extend_from_slice(&byte_utils::be32_to_array(
30813081
self.latest_block_height.load(Ordering::Acquire) as u32,

lightning/src/util/events.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub enum Event {
5757
/// the amount expected.
5858
/// If you fail to call either ChannelManager::claim_funds of
5959
/// ChannelManager::fail_htlc_backwards within the HTLC's timeout, the HTLC will be
60-
/// automatically failed with PaymentFailReason::PreimageUnknown.
60+
/// automatically failed.
6161
PaymentReceived {
6262
/// The hash for which the preimage should be handed to the ChannelManager.
6363
payment_hash: PaymentHash,

0 commit comments

Comments
 (0)