]> 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>
Thu, 20 Jan 2022 20:05:18 +0000 (14:05 -0600)
commit296b57216eea5107810612e9dd62297ef1041d20
tree73ec92daab667bc46c9c2213e6c1732cc3bad3a1
parentde6497ee44e35ed9b8869aa0246f3af8e7f87b2c
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