@@ -148,21 +148,20 @@ pub enum Event {
148
148
user_channel_id : u64 ,
149
149
} ,
150
150
/// Indicates we've received money! Just gotta dig out that payment preimage and feed it to
151
- /// ChannelManager::claim_funds to get it....
152
- /// Note that if the preimage is not known or the amount paid is incorrect , you should call
153
- /// ChannelManager::fail_htlc_backwards to free up resources for this HTLC and avoid
151
+ /// [` ChannelManager::claim_funds`] to get it....
152
+ /// Note that if the preimage is not known, you should call
153
+ /// [` ChannelManager::fail_htlc_backwards`] to free up resources for this HTLC and avoid
154
154
/// network congestion.
155
- /// The amount paid should be considered 'incorrect' when it is less than or more than twice
156
- /// the amount expected.
157
- /// If you fail to call either ChannelManager::claim_funds or
158
- /// ChannelManager::fail_htlc_backwards within the HTLC's timeout, the HTLC will be
155
+ /// If you fail to call either [`ChannelManager::claim_funds`] or
156
+ /// [`ChannelManager::fail_htlc_backwards`] within the HTLC's timeout, the HTLC will be
159
157
/// automatically failed.
158
+ ///
159
+ /// [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds
160
+ /// [`ChannelManager::fail_htlc_backwards`]: crate::ln::channelmanager::ChannelManager::fail_htlc_backwards
160
161
PaymentReceived {
161
162
/// The hash for which the preimage should be handed to the ChannelManager.
162
163
payment_hash : PaymentHash ,
163
- /// The value, in thousandths of a satoshi, that this payment is for. Note that you must
164
- /// compare this to the expected value before accepting the payment (as otherwise you are
165
- /// providing proof-of-payment for less than the value you expected!).
164
+ /// The value, in thousandths of a satoshi, that this payment is for.
166
165
amt : u64 ,
167
166
/// Information for claiming this received payment, based on whether the purpose of the
168
167
/// payment is to pay an invoice or to send a spontaneous payment.
0 commit comments