Skip to content

Commit 9bea4ce

Browse files
committed
f: Clarify the role of can_accept_incoming_htlc
1 parent 417ed03 commit 9bea4ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7303,6 +7303,8 @@ impl<SP: Deref> FundedChannel<SP> where
73037303
})
73047304
}
73057305

7306+
/// When this function is called, the HTLC is already irrevocably committed to the channel;
7307+
/// this function determines whether to fail the HTLC, or forward / claim it.
73067308
pub fn can_accept_incoming_htlc<F: Deref, L: Deref>(
73077309
&self, msg: &msgs::UpdateAddHTLC, fee_estimator: &LowerBoundedFeeEstimator<F>, logger: L
73087310
) -> Result<(), (&'static str, u16)>

0 commit comments

Comments
 (0)