]> git.bitcoin.ninja Git - rust-lightning/commit
Help users support sending MPP keysend
authorAlec Chen <alecchendev@gmail.com>
Mon, 8 May 2023 22:51:19 +0000 (17:51 -0500)
committerAlec Chen <alecchendev@gmail.com>
Fri, 9 Jun 2023 16:26:58 +0000 (11:26 -0500)
commit07def9292a49bb240daba6dec8b289d03bbb3f50
tree5914e3ea7d16e3b4f96f56ef5a652e8fd267f1b4
parent749ae12e2230ff2a9d34ec767bdc4623a2649ca7
Help users support sending MPP keysend

When routing a keysend payment, the user may want to signal to the
router whether to find multi-path routes in the
`PaymentParameters::for_keysend` helper, without going through manual
construction. Since some implementations do not support MPP keysend, we
have the user make the choice here rather than making it the default.

Some implementations will reject keysend payments with payment secrets,
so this commit also adds docs to `RecipientOnionFields` to communicate
this to the user.
lightning/src/ln/channelmanager.rs
lightning/src/ln/features.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/outbound_payment.rs
lightning/src/routing/router.rs