Send keysend preimage through OutboundPayment::send_payment_internal
authorAlec Chen <alecchendev@gmail.com>
Sat, 5 Aug 2023 00:20:46 +0000 (19:20 -0500)
committerAlec Chen <alecchendev@gmail.com>
Sat, 5 Aug 2023 03:05:13 +0000 (22:05 -0500)
commitb0d4ab8cf8c93740674a00546be38a1a5f0a83c3
treeada74296ea74b1dfb7f156eba3774b0f4e7cef7a
parentb7d0357a8ad42415eb38e83aa4595b51e86d1a98
Send keysend preimage through OutboundPayment::send_payment_internal

Fixes a bug where we wouldn't use the provided keysend preimage when
piping through OutboundPayment::pay_route_internal.

Also simplifies and refactors existing keysend tests to make sure this
gets hit.
lightning/src/ln/outbound_payment.rs
lightning/src/ln/payment_tests.rs