rust-lightning/fuzz/src
Matt Corallo fbc08477e8 Move the final CLTV delta to PaymentParameters from RouteParams
`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`.
2023-02-01 17:50:24 +00:00
..
bin Add a fuzzer to check that IndexedMap is equivalent to BTreeMap 2023-01-25 18:58:51 +00:00
msg_targets Bump workspace to rust edition 2018 2022-10-21 14:47:34 -07:00
utils Pass monitor updates by reference, not owned 2023-01-15 23:53:21 +00:00
chanmon_consistency.rs Add new payment type and metadata bytes 2023-01-24 21:01:27 +02:00
chanmon_deser.rs Split up generic parameters that used to comprise KeysInterface. 2023-01-12 16:10:35 -08:00
full_stack.rs Move the final CLTV delta to PaymentParameters from RouteParams 2023-02-01 17:50:24 +00:00
indexedmap.rs Add a fuzzer to check that IndexedMap is equivalent to BTreeMap 2023-01-25 18:58:51 +00:00
lib.rs Add a fuzzer to check that IndexedMap is equivalent to BTreeMap 2023-01-25 18:58:51 +00:00
onion_message.rs Remove NodeSigner::get_node_secret 2023-01-18 17:23:25 -08:00
peer_crypt.rs Use NodeSigner::ecdh to compute SharedSecrets 2023-01-18 17:23:23 -08:00
process_network_graph.rs Bump workspace to rust edition 2018 2022-10-21 14:47:34 -07:00
router.rs Move the final CLTV delta to PaymentParameters from RouteParams 2023-02-01 17:50:24 +00:00
zbase32.rs Bump workspace to rust edition 2018 2022-10-21 14:47:34 -07:00