Skip to content

Commit 56f4451

Browse files
committed
f - Update router comment
1 parent 7c2614c commit 56f4451

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lightning/src/routing/router.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ pub const DEFAULT_MAX_PATH_COUNT: u8 = 10;
185185
const MEDIAN_HOP_CLTV_EXPIRY_DELTA: u32 = 40;
186186

187187
// During routing, we only consider paths shorter than our maximum length estimate.
188-
// In the legacy onion format, the maximum number of hops used to be a fixed value of 20.
189-
// However, in the TLV onion format, there is no fixed maximum length, but the `hop_payloads`
188+
// In the TLV onion format, there is no fixed maximum length, but the `hop_payloads`
190189
// field is always 1300 bytes. As the `tlv_payload` for each hop may vary in length, we have to
191190
// estimate how many hops the route may have so that it actually fits the `hop_payloads` field.
192191
//

0 commit comments

Comments
 (0)