File tree 1 file changed +5
-2
lines changed 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,11 @@ pub enum Event {
50
50
} ,
51
51
/// Indicates we've received money! Just gotta dig out that payment preimage and feed it to
52
52
/// 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.
55
58
PaymentReceived {
56
59
/// The hash for which the preimage should be handed to the ChannelManager.
57
60
payment_hash : [ u8 ; 32 ] ,
You can’t perform that action at this time.
0 commit comments