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 5, 2023
1 parent 6ed1e5f commit b5f4349
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 @@ -900,6 +900,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;
}
let we_are_intermed_hop = path.blinded_tail.as_ref().map_or_else(
|| path.hops.split_last().map_or(false, |(_, path_prefix)| path_prefix.iter().any(|hop| hop.pubkey == our_node_id)),
|tail|
Expand Down

0 comments on commit b5f4349

Please sign in to comment.