Skip to content

Commit fa9aee2

Browse files
Disallow paying to blinded paths for now
1 parent 8f54dc3 commit fa9aee2

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
@@ -1000,6 +1000,10 @@ impl OutboundPayments {
10001000
path_errs.push(Err(APIError::InvalidRoute{err: "Path didn't go anywhere/had bogus size".to_owned()}));
10011001
continue 'path_check;
10021002
}
1003+
if path.blinded_tail.is_some() {
1004+
path_errs.push(Err(APIError::InvalidRoute{err: "Sending to blinded paths isn't supported yet".to_owned()}));
1005+
continue 'path_check;
1006+
}
10031007
for (idx, hop) in path.hops.iter().enumerate() {
10041008
if idx != path.hops.len() - 1 && hop.pubkey == our_node_id {
10051009
path_errs.push(Err(APIError::InvalidRoute{err: "Path went through us but wasn't a simple rebalance loop to us".to_owned()}));

0 commit comments

Comments
 (0)