rust-lightning/lightning/src
Alec Chen 1d31b0e84e Use onion amount amt_to_forward for MPP set calculation
If routing nodes take less fees and pay the final node more than
`amt_to_forward`, the receiver may see that `total_msat` has been met
before all of the sender's intended HTLCs have arrived. The receiver
may then prematurely claim the payment and release the payment hash,
allowing routing nodes to claim the remaining HTLCs. Using the onion
value `amt_to_forward` to determine when `total_msat` has been met
allows the sender to control the set total.
2023-03-28 17:21:09 -05:00
..
chain Merge pull request #2083 from wpaulino/events-module 2023-03-28 16:37:55 +00:00
events Allow overshooting total_msat for an MPP 2023-03-28 17:21:09 -05:00
ln Use onion amount amt_to_forward for MPP set calculation 2023-03-28 17:21:09 -05:00
offers Fix amount overflow in Invoice building 2023-02-23 18:25:50 -06:00
onion_message Merge pull request #2083 from wpaulino/events-module 2023-03-28 16:37:55 +00:00
routing Merge pull request #2083 from wpaulino/events-module 2023-03-28 16:37:55 +00:00
sync Merge pull request #2068 from jkczyz/2023-03-doc-fixes 2023-03-03 22:19:59 +00:00
util Merge pull request #2083 from wpaulino/events-module 2023-03-28 16:37:55 +00:00
lib.rs Move events.rs into its own top-level module 2023-03-22 11:49:33 -07:00