Skip to content

Commit

Permalink
Disallow paying to blinded paths for now
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinewallace committed Apr 18, 2023
1 parent 8d4e072 commit b0cedb3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lightning/src/ln/outbound_payment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,10 @@ impl OutboundPayments {
path_errs.push(Err(APIError::InvalidRoute{err: "Path didn't go anywhere/had bogus size".to_owned()}));
continue 'path_check;
}
if path.blinded_tail.is_some() {
path_errs.push(Err(APIError::InvalidRoute{err: "Sending to blinded paths isn't supported yet".to_owned()}));
continue 'path_check;
}
for (idx, hop) in path.hops.iter().enumerate() {
if idx != path.hops.len() - 1 && hop.pubkey == our_node_id {
path_errs.push(Err(APIError::InvalidRoute{err: "Path went through us but wasn't a simple rebalance loop to us".to_owned()}));
Expand Down

0 comments on commit b0cedb3

Please sign in to comment.