mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
Merge remote-tracking branch 'origin/pr/53'
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
commit
60e7e54f95
@ -289,10 +289,15 @@ struct peer *find_route(struct lightningd_state *dstate,
|
||||
* at the end, and need to derive how much we need to send. */
|
||||
dst = get_node(dstate, &dstate->id);
|
||||
src = get_node(dstate, to);
|
||||
|
||||
if (!src) {
|
||||
log_info_struct(dstate->base_log, "find_route: cannot find %s",
|
||||
struct pubkey, to);
|
||||
return NULL;
|
||||
} else if (dst == src) {
|
||||
log_info_struct(dstate->base_log, "find_route: this is %s, refusing to create empty route",
|
||||
struct pubkey, to);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Reset all the information. */
|
||||
|
Loading…
Reference in New Issue
Block a user