Skip to content

Commit ea02488

Browse files
f check for new tlv in RecipientOnionFields::with_custom_tlv
1 parent 2faaad1 commit ea02488

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/ln/outbound_payment.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ impl RecipientOnionFields {
641641
for (typ, _) in custom_tlvs.iter() {
642642
if *typ < 1 << 16 { return Err(()); }
643643
if *typ == 5482373484 { return Err(()); } // keysend
644+
if *typ == 77_777 { return Err(()); } // invoice requests for async payments
644645
match prev_type {
645646
Some(prev) if prev >= *typ => return Err(()),
646647
_ => {},

0 commit comments

Comments
 (0)