mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-26 15:42:52 +01:00
`PaymentParams` is all about the parameters for a payment, i.e. the parameters which are static across all the paths of a paymet. `RouteParameters` is about the information specific to a given `Route` (i.e. a set of paths, among multiple potential sets of paths for a payment). The CLTV delta thus doesn't belong in `RouterParameters` but instead in `PaymentParameters`. Worse, because `RouteParameters` is built from the information in the last hops of a `Route`, when we deliberately inflate the CLTV delta in path-finding, retries of the payment will have the final CLTV delta double-inflated as it inflates starting from the final CLTV delta used in the last attempt. By moving the CLTV delta to `PaymentParameters` we avoid this issue, leaving only the sought amount in the `RouteParameters`. |
||
---|---|---|
.. | ||
bin | ||
msg_targets | ||
utils | ||
chanmon_consistency.rs | ||
chanmon_deser.rs | ||
full_stack.rs | ||
indexedmap.rs | ||
lib.rs | ||
onion_message.rs | ||
peer_crypt.rs | ||
process_network_graph.rs | ||
router.rs | ||
zbase32.rs |