Skip to content

Commit bdbb2f0

Browse files
yuntaiTheBlueMatt
authored andcommitted
Comments updated for PaymentReceived
1 parent f133554 commit bdbb2f0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/util/events.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@ pub enum Event {
5050
},
5151
/// Indicates we've received money! Just gotta dig out that payment preimage and feed it to
5252
/// ChannelManager::claim_funds to get it....
53-
/// Note that if the preimage is not known, you must call ChannelManager::fail_htlc_backwards
54-
/// to free up resources for this HTLC.
53+
/// Note that if the preimage is not known or the amount paid is incorrect, you must call
54+
/// ChannelManager::fail_htlc_backwards with PaymentFailReason::PreimageUnknown or
55+
/// PaymentFailReason::AmountMismatch, respectively, to free up resources for this HTLC.
56+
/// The amount paid should be considered 'incorrect' when it is less than or more than twice
57+
/// the amount expected.
5558
PaymentReceived {
5659
/// The hash for which the preimage should be handed to the ChannelManager.
5760
payment_hash: [u8; 32],

0 commit comments

Comments
 (0)