We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cabebb commit 6ed9102Copy full SHA for 6ed9102
lightning/src/routing/router.rs
@@ -1458,6 +1458,9 @@ where L::Target: Logger {
1458
if payee_node_id_opt.map_or(false, |payee| payee == our_node_id) {
1459
return Err(LightningError{err: "Cannot generate a route to ourselves".to_owned(), action: ErrorAction::IgnoreError});
1460
}
1461
+ if our_node_id == maybe_dummy_payee_node_id {
1462
+ return Err(LightningError{err: "Invalid origin node id provided, use a different one".to_owned(), action: ErrorAction::IgnoreError});
1463
+ }
1464
1465
if final_value_msat > MAX_VALUE_MSAT {
1466
return Err(LightningError{err: "Cannot generate a route of more value than all existing satoshis".to_owned(), action: ErrorAction::IgnoreError});
0 commit comments