]> git.bitcoin.ninja Git - rust-lightning/commit
Support spontaneous payments in InvoicePayer
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 9 Nov 2021 23:32:37 +0000 (17:32 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 16 Nov 2021 19:57:57 +0000 (13:57 -0600)
commitb4c7370d26a23ccf044b3d0e8b4c344c743433c9
tree831bf15bd8674b284ed8ac684d0d2ad71554dd4b
parentc9ce344d56991ffa49c1867d5041bc136cedbece
Support spontaneous payments in InvoicePayer

InvoicePayer handles retries not only when handling PaymentPathFailed
events but also for some types of PaymentSendFailure on the initial
send. Expand InvoicePayer's interface with a pay_pubkey function for
spontaneous (keysend) payments. Add a send_spontaneous_payment function
to the Payer trait to support this and implement it for ChannelManager.
lightning-invoice/src/payment.rs
lightning-invoice/src/utils.rs