Skip to content

Commit 1c63f20

Browse files
Document on claim events that amount_msat may be > invoice amount
1 parent a899e38 commit 1c63f20

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lightning/src/events/mod.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ pub enum Event {
387387
///
388388
/// Payments received on LDK versions prior to 0.0.115 will have this field unset.
389389
onion_fields: Option<RecipientOnionFields>,
390-
/// The value, in thousandths of a satoshi, that this payment is claimable for.
390+
/// The value, in thousandths of a satoshi, that this payment is claimable for. May be greater
391+
/// than the invoice amount.
391392
///
392393
/// May be less than the invoice amount if [`ChannelConfig::accept_underpaying_htlcs`] is set
393394
/// and the previous hop took an extra fee.
@@ -446,7 +447,8 @@ pub enum Event {
446447
/// The payment hash of the claimed payment. Note that LDK will not stop you from
447448
/// registering duplicate payment hashes for inbound payments.
448449
payment_hash: PaymentHash,
449-
/// The value, in thousandths of a satoshi, that this payment is for.
450+
/// The value, in thousandths of a satoshi, that this payment is for. May be greater than the
451+
/// invoice amount.
450452
amount_msat: u64,
451453
/// The purpose of the claimed payment, i.e. whether the payment was for an invoice or a
452454
/// spontaneous payment.

0 commit comments

Comments
 (0)