Skip to content

Commit 1d2c969

Browse files
f tweak Route/Path docs more
1 parent 76c2f71 commit 1d2c969

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

lightning/src/routing/router.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,16 +227,17 @@ pub struct RouteHop {
227227
/// to reach this node.
228228
pub channel_features: ChannelFeatures,
229229
/// The fee taken on this hop (for paying for the use of the *next* channel in the path).
230-
/// If this is the last hop in [`Path::hops`] and we're not sending to a [`BlindedPath`], this
231-
/// is the full value of this [`Path`]'s part of the payment. If we're sending to a
232-
/// [`BlindedPath`], this is the fee paid for use of the entire blinded path.
230+
/// If this is the last hop in [`Path::hops`]:
231+
/// * if we're sending to a [`BlindedPath`], this is the fee paid for use of the entire blinded path
232+
/// * otherwise, this is the full value of this [`Path`]'s part of the payment
233233
///
234234
/// [`BlindedPath`]: crate::blinded_path::BlindedPath
235235
pub fee_msat: u64,
236-
/// The CLTV delta added for this hop. If this is the last hop in [`Path::hops`] and we're not
237-
/// sending to a [`BlindedPath`], this is the full CLTV value expected at the destination, in
238-
/// excess of the current block height. If we're sending to a [`BlindedPath`], this is the CLTV
239-
/// delta for the entire blinded path.
236+
/// The CLTV delta added for this hop.
237+
/// If this is the last hop in [`Path::hops`]:
238+
/// * if we're sending to a [`BlindedPath`], this is the CLTV delta for the entire blinded path
239+
/// * otherwise, this is the full CLTV value expected at the destination, in excess of the current
240+
/// block height
240241
///
241242
/// [`BlindedPath`]: crate::blinded_path::BlindedPath
242243
pub cltv_expiry_delta: u32,

0 commit comments

Comments
 (0)