Skip to content

Commit 751c245

Browse files
committed
f - tell user they MUST check even TLVs before claiming
1 parent ddca62a commit 751c245

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/ln/channelmanager.rs

+5
Original file line numberDiff line numberDiff line change
@@ -4406,6 +4406,11 @@ where
44064406
/// This is a variant of [`claim_funds`] that allows accepting a payment with custom TLVs with
44074407
/// even type numbers.
44084408
///
4409+
/// # Note
4410+
///
4411+
/// You MUST check you've understood all even TLVs before using this to
4412+
/// claim, otherwise you may unintentionally agree to some protocol you do not understand.
4413+
///
44094414
/// [`claim_funds`]: Self::claim_funds
44104415
pub fn claim_funds_with_known_custom_tlvs(&self, payment_preimage: PaymentPreimage) {
44114416
self.claim_payment_internal(payment_preimage, true);

0 commit comments

Comments
 (0)