Skip to content

Commit 7da68f6

Browse files
fixup! add the bolt12 invoice to the PaymentSend event
Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent d831270 commit 7da68f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/events/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,11 @@ pub enum Event {
940940
/// [`Route::get_total_fees`]: crate::routing::router::Route::get_total_fees
941941
fee_paid_msat: Option<u64>,
942942
/// The bolt12 invoice that was paid. `None` if the payment was a non-bolt12 payment.
943+
///
944+
/// The bolt12 invoice is useful for proof of payment because it contains the
945+
/// payment hash. A third party can verify that the payment was made by
946+
/// showing the invoice and confirming that the payment hash matches
947+
/// the hash of the payment preimage.
943948
bolt12_invoice: Option<Bolt12Invoice>,
944949
},
945950
/// Indicates an outbound payment failed. Individual [`Event::PaymentPathFailed`] events

0 commit comments

Comments
 (0)