X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Futil%2Fevents.rs;h=a4a733c8e503eff05212d6570ada728a4cb95c1e;hb=f49662caa4a9cb845ae1451b0baf85b80b8dc711;hp=5184a02031ddd6719048719368e46bd261a95f7a;hpb=064d709910df70403e84176804c9dcb137b73572;p=rust-lightning diff --git a/lightning/src/util/events.rs b/lightning/src/util/events.rs index 5184a020..a4a733c8 100644 --- a/lightning/src/util/events.rs +++ b/lightning/src/util/events.rs @@ -183,10 +183,15 @@ pub enum Event { /// [`ChannelManager::fail_htlc_backwards`] within the HTLC's timeout, the HTLC will be /// automatically failed. /// + /// # Note + /// LDK will not stop an inbound payment from being paid multiple times, so multiple + /// `PaymentReceived` events may be generated for the same payment. + /// /// [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds /// [`ChannelManager::fail_htlc_backwards`]: crate::ln::channelmanager::ChannelManager::fail_htlc_backwards PaymentReceived { - /// The hash for which the preimage should be handed to the ChannelManager. + /// The hash for which the preimage should be handed to the ChannelManager. Note that LDK will + /// not stop you from registering duplicate payment hashes for inbound payments. payment_hash: PaymentHash, /// The value, in thousandths of a satoshi, that this payment is for. amt: u64,