]> git.bitcoin.ninja Git - rust-lightning/commit
Add PendingOutboundPayment::AwaitingInvoice
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 17 Jul 2023 21:55:22 +0000 (16:55 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 7 Sep 2023 21:44:13 +0000 (16:44 -0500)
commit581ea7c6edef48be22137f85b6e6e09446d58396
treed6bd9198b6c4d6c69a7d7aff697c3e077a27e8ef
parent6d0c5f00ba315981e83994774dc50c5c31d4e5ae
Add PendingOutboundPayment::AwaitingInvoice

When a BOLT 12 invoice has been requested, in order to guarantee
invoice payment idempotency the future payment needs to be tracked. Add
an AwaitingInvoice variant to PendingOutboundPayment such that only
requested invoices are paid only once. Timeout after a few timer ticks
if a request has not been received.
lightning/src/ln/channelmanager.rs
lightning/src/ln/outbound_payment.rs