Skip to content

Commit

Permalink
f - tell user they MUST check even TLVs before claiming
Browse files Browse the repository at this point in the history
  • Loading branch information
alecchendev committed Jun 14, 2023
1 parent a40111c commit a0d10a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4406,6 +4406,11 @@ where
/// This is a variant of [`claim_funds`] that allows accepting a payment with custom TLVs with
/// even type numbers.
///
/// # Note
///
/// You MUST check you've understood all even TLVs before using this to
/// claim, otherwise you may unintentionally agree to some protocol you do not understand.
///
/// [`claim_funds`]: Self::claim_funds
pub fn claim_funds_with_known_custom_tlvs(&self, payment_preimage: PaymentPreimage) {
self.claim_payment_internal(payment_preimage, true);
Expand Down

0 comments on commit a0d10a3

Please sign in to comment.