Skip to content

Commit 48d2095

Browse files
f fix Path::length max description
1 parent 45debc2 commit 48d2095

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lightning/src/routing/router.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,8 @@ impl_writeable_tlv_based!(BlindedTail, {
279279
(6, final_value_msat, required),
280280
});
281281

282-
/// A path in a [`Route`] to the payment recipient. Must always be at least length one. While the
283-
/// maximum length of any given path is variable, keeping the length of any path less than or equal
284-
/// to 19 should currently ensure it is viable.
282+
/// A path in a [`Route`] to the payment recipient. Must always be at least length one.
283+
/// If no [`Path::blinded_tail`] is present, then [`Path::hops`] length may be up to 19.
285284
#[derive(Clone, Debug, Hash, PartialEq, Eq)]
286285
pub struct Path {
287286
/// The list of unblinded hops in this [`Path`]. Must be at least length one.

0 commit comments

Comments
 (0)