We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cfb052 commit 7632cfeCopy full SHA for 7632cfe
lightning/src/routing/router.rs
@@ -1489,6 +1489,9 @@ where L::Target: Logger {
1489
if payee_node_id_opt.map_or(false, |payee| payee == our_node_id) {
1490
return Err(LightningError{err: "Cannot generate a route to ourselves".to_owned(), action: ErrorAction::IgnoreError});
1491
}
1492
+ if our_node_id == maybe_dummy_payee_node_id {
1493
+ return Err(LightningError{err: "Invalid origin node id provided, use a different one".to_owned(), action: ErrorAction::IgnoreError});
1494
+ }
1495
1496
if final_value_msat > MAX_VALUE_MSAT {
1497
return Err(LightningError{err: "Cannot generate a route of more value than all existing satoshis".to_owned(), action: ErrorAction::IgnoreError});
0 commit comments