Test `max_total_routing_fee_msat` handling when retrying overpaid paths
authorElias Rohrer <dev@tnull.de>
Tue, 26 Sep 2023 13:30:39 +0000 (15:30 +0200)
committerElias Rohrer <dev@tnull.de>
Tue, 26 Sep 2023 18:12:31 +0000 (20:12 +0200)
commit6765767cbc2b8e4a8fbe04c4a2b2e982809f5604
treeba2a4e6a7e3fef776ec2bbab31768230a38c0a3a
parent78959439537266a0f6aa478b8274bb11e36282db
Test `max_total_routing_fee_msat` handling when retrying overpaid paths

We setup an MPP scenario with two paths in which we need to overpay to
reach `htlc_minimum_msat`. We then fail the overpaid path and check that
on retry our `max_total_routing_fee_msat` only accounts for the path
fees, but not for the fees overpaid in the first attempt.
lightning/src/ln/payment_tests.rs