rust-lightning/lightning/src/ln
Matt Corallo 2b135578e8 Use the PaymentParameter final CLTV delta over RouteParameters
`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.

When we calculate the `final_cltv_expiry_delta` to put in the
`RouteParameters` returned via events after a payment failure, we
should re-use the new one in the `PaymentParameters`, rather than
the one that was in the route itself.
2023-02-01 21:16:18 +00:00
..
chan_utils.rs Separate channel-type-agnostic methods into ChannelSigner trait. 2023-01-23 15:48:26 -08:00
chanmon_update_fail_tests.rs Merge pull request #1957 from TheBlueMatt/2022-01-mon-ref-lockorder 2023-01-17 23:09:05 +00:00
channel.rs Make Channel and ChannelManager less particular about their Signer type. 2023-01-23 15:48:39 -08:00
channelmanager.rs Use the PaymentParameter final CLTV delta over RouteParameters 2023-02-01 21:16:18 +00:00
features.rs Support negotiating anchors throughout channel open 2023-01-18 14:46:13 -08:00
functional_test_utils.rs Move the final CLTV delta to PaymentParameters from RouteParams 2023-02-01 17:50:24 +00:00
functional_tests.rs Move the final CLTV delta to PaymentParameters from RouteParams 2023-02-01 17:50:24 +00:00
inbound_payment.rs Add new payment type and metadata bytes 2023-01-24 21:01:27 +02:00
mod.rs Move PendingOutboundPayment to new outbound_payment module 2022-12-19 14:09:59 -05:00
monitor_tests.rs Add test yielding anchor-related events 2023-01-18 14:46:16 -08:00
msgs.rs Add NodeSigner::sign_gossip_message 2023-01-18 17:23:15 -08:00
onion_route_tests.rs Move the final CLTV delta to PaymentParameters from RouteParams 2023-02-01 17:50:24 +00:00
onion_utils.rs Merge pull request #1895 from TheBlueMatt/2022-12-fix-missing-data 2022-12-06 22:46:04 +00:00
outbound_payment.rs Use the PaymentParameter final CLTV delta over RouteParameters 2023-02-01 21:16:18 +00:00
payment_tests.rs Move the final CLTV delta to PaymentParameters from RouteParams 2023-02-01 17:50:24 +00:00
peer_channel_encryptor.rs Use NodeSigner::ecdh to compute SharedSecrets 2023-01-18 17:23:23 -08:00
peer_handler.rs Remove NodeSigner::get_node_secret 2023-01-18 17:23:25 -08:00
priv_short_conf_tests.rs Move the final CLTV delta to PaymentParameters from RouteParams 2023-02-01 17:50:24 +00:00
reload_tests.rs Stop passing InitFeatures in msg handlers 2023-01-16 21:18:53 +00:00
reorg_tests.rs Use UserConfig to determine advertised InitFeatures by ChannelManager 2023-01-13 23:54:51 -08:00
script.rs Use UserConfig to determine advertised InitFeatures by ChannelManager 2023-01-13 23:54:51 -08:00
shutdown_tests.rs Move the final CLTV delta to PaymentParameters from RouteParams 2023-02-01 17:50:24 +00:00
wire.rs Bump workspace to rust edition 2018 2022-10-21 14:47:34 -07:00