X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Frouting%2Frouter.rs;h=cffd9ddb0a581ea2e26a53ee3f305a8c7f81bbf7;hb=49c9f1885dd7a564c0c78ad5f73ea4792c0171a8;hp=9d3324c7b6454947e84e2981839663a625ede569;hpb=e55e0d53c74ba8c810ad36ea39e0ea1621873c34;p=rust-lightning diff --git a/lightning/src/routing/router.rs b/lightning/src/routing/router.rs index 9d3324c7..cffd9ddb 100644 --- a/lightning/src/routing/router.rs +++ b/lightning/src/routing/router.rs @@ -228,8 +228,7 @@ pub const DEFAULT_MAX_PATH_COUNT: u8 = 10; const MEDIAN_HOP_CLTV_EXPIRY_DELTA: u32 = 40; // During routing, we only consider paths shorter than our maximum length estimate. -// In the legacy onion format, the maximum number of hops used to be a fixed value of 20. -// However, in the TLV onion format, there is no fixed maximum length, but the `hop_payloads` +// In the TLV onion format, there is no fixed maximum length, but the `hop_payloads` // field is always 1300 bytes. As the `tlv_payload` for each hop may vary in length, we have to // estimate how many hops the route may have so that it actually fits the `hop_payloads` field. //