Skip to content

Commit a8c6f8f

Browse files
Disallow paying to blinded paths for now
1 parent 686004c commit a8c6f8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/ln/outbound_payment.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,10 @@ impl OutboundPayments {
953953
path_errs.push(Err(APIError::InvalidRoute{err: "Path didn't go anywhere/had bogus size".to_owned()}));
954954
continue 'path_check;
955955
}
956+
if path.blinded_tail.is_some() {
957+
path_errs.push(Err(APIError::InvalidRoute{err: "Sending to blinded paths isn't supported yet".to_owned()}));
958+
continue 'path_check;
959+
}
956960
for (idx, hop) in path.hops.iter().enumerate() {
957961
if idx != path.hops.len() - 1 && hop.pubkey == our_node_id {
958962
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)