Skip to content

Commit 510db9f

Browse files
Disallow paying to blinded paths for now
1 parent 84ffb4c commit 510db9f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/ln/outbound_payment.rs

+4
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,10 @@ impl OutboundPayments {
900900
path_errs.push(Err(APIError::InvalidRoute{err: "Path didn't go anywhere/had bogus size".to_owned()}));
901901
continue 'path_check;
902902
}
903+
if path.blinded_tail.is_some() {
904+
path_errs.push(Err(APIError::InvalidRoute{err: "Sending to blinded paths isn't supported yet".to_owned()}));
905+
continue 'path_check;
906+
}
903907
let we_are_intermed_hop = path.blinded_tail.as_ref().map_or_else(
904908
|| path.hops.split_last().map_or(false, |(_, path_prefix)| path_prefix.iter().any(|hop| hop.pubkey == our_node_id)),
905909
|tail|

0 commit comments

Comments
 (0)