]> git.bitcoin.ninja Git - rust-lightning/commit
Add first_hops to generate_routes benchmarks
authorJeffrey Czyz <jkczyz@gmail.com>
Sun, 16 Jan 2022 16:04:11 +0000 (10:04 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 25 Jan 2022 01:05:49 +0000 (19:05 -0600)
commit486df783e9a7727b313ef8272a21a10cf88c6f7c
tree5fa5a900b5c1381bf0e538936d7917df7513d181
parent06053fc21c11be9c7a285e4252f2bfdb1f4e86c6
Add first_hops to generate_routes benchmarks

Passing first_hops to get_route increases the coverage of the benchmark
test. For scorers needing the sending node, it allows for using a single
scorer in the benchmark rather than re-initializing on each iteration.
As a consequence, the scorer can be seeded with success and failure
data.
lightning/src/routing/router.rs