Track MPP data while receiving keysends
authorAlec Chen <alecchendev@gmail.com>
Tue, 2 May 2023 04:05:43 +0000 (23:05 -0500)
committerAlec Chen <alecchendev@gmail.com>
Fri, 9 Jun 2023 16:27:06 +0000 (11:27 -0500)
commit4be3adb51ff7e3f9d3ae6b153e47f7e46497e551
tree4711dafc68a2cf067561a8139e634c90d0d9ca50
parent07def9292a49bb240daba6dec8b289d03bbb3f50
Track MPP data while receiving keysends

This commit adds the field `payment_data: FinalOnionHopData` to
`ReceiveKeysend` which will allow us to check for payment secrets and
total amounts which is needed to support receiving MPP keysends. This
field is non-backwards compatible since we wouldn't be able to handle
an MPP keysend properly if we were to downgrade to a prior version.

We also no longer reject keysends with payment secrets if we support MPP
keysend.
lightning/src/ln/channelmanager.rs