Make routing benchmark robust against path changes
authorMatt Corallo <git@bluematt.me>
Thu, 10 Mar 2022 21:07:37 +0000 (21:07 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 16 Mar 2022 22:10:46 +0000 (22:10 +0000)
commitfef8acf70c3b27927e0c51b7a36e78be6d76bb11
treef2c9ee3e100e590c86a3ccee0b8a53d8ba2c3052
parent2bba1d42513ea7b29e22a553e7b6101efb9e5be6
Make routing benchmark robust against path changes

If the scoring in the routing benchmark causes us to take a
different path from the original scan, we may end up deciding that
the only path to a node has a too-high total CLTV delta, causing us
to panic in the benchmarking phase.

Here we simply check for that possibility and remove paths that
fail post-scoring.
lightning/src/routing/router.rs