Skip to content

Commit 2822a13

Browse files
f note that fees are not enforced in intercept forward
1 parent 183b51f commit 2822a13

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3167,6 +3167,8 @@ impl<M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelManager<M, T, K, F
31673167
/// channel id(s) to put in the receiver's invoice route hints. These route hints will signal to
31683168
/// LDK to generate an [`HTLCIntercepted`] event when it receives the forwarded HTLC.
31693169
///
3170+
/// Note that LDK does not enforce fee requirements in `amt_to_forward_msat`.
3171+
///
31703172
/// [`HTLCIntercepted`]: events::Event::HTLCIntercepted
31713173
pub fn forward_intercepted_htlc(&self, intercept_id: InterceptId, next_hop_scid: u64, _next_node_id: PublicKey, amt_to_forward_msat: u64) -> Result<(), APIError> {
31723174
let _persistence_guard = PersistenceNotifierGuard::notify_on_drop(&self.total_consistency_lock, &self.persistence_notifier);

0 commit comments

Comments
 (0)