pay: fix corner case where we eliminate our own hint.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: `pay`: Fix occasional crash paying an invoice with a routehint to us.
This commit is contained in:
Rusty Russell
2021-05-24 13:09:11 +09:30
parent 5aed2bc212
commit 96bd0961a4
2 changed files with 24 additions and 0 deletions

View File

@@ -2361,6 +2361,7 @@ static struct route_info **filter_routehints(struct gossmap *map,
"Removed empty routehint %zu. ", i);
tal_arr_remove(&hints, i);
i--;
continue;
}
/* If routehint entrypoint is unreachable there's no