[router] Fix + test routing via next/last-hop hints only
authorMatt Corallo <git@bluematt.me>
Thu, 12 Nov 2020 23:57:02 +0000 (18:57 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 23 Nov 2020 18:52:51 +0000 (13:52 -0500)
We had code in the router to support sending a payment via a single
hop across channels exclusively provided by the next-/last-hop hints.
However, in updating the fuzzer, I noted that this case not only
didn't work, but paniced in some cases.

Here, we both fix the panic, as well as write a new test which
ensures we don't break support for such routing in the future.


No differences found