]> git.bitcoin.ninja Git - rust-lightning/commit
Test we prefer first hops over route hints
authorElias Rohrer <dev@tnull.de>
Fri, 29 Sep 2023 14:09:44 +0000 (16:09 +0200)
committerElias Rohrer <dev@tnull.de>
Fri, 29 Sep 2023 18:22:05 +0000 (20:22 +0200)
commit154cd3c043ebcc323f0f98b8f22ad683d2771472
tree929a4b70b7900d691fa1ab28fab6d01a8b3e77a9
parent5d5d6406aa9ab8f5c4d3206b66682de796fdb1be
Test we prefer first hops over route hints

We previously added logic that would avoid adding superflous candidates
for route hints if we detect that we have a first hop for this channel.

Here we add test coverage that we actually prefer the first hop over the
route hint, but still consider the remaining hints.
lightning/src/routing/router.rs