]> git.bitcoin.ninja Git - rust-lightning/commit
test_utils: parameterize TestRouter by TestScorer
authorValentine Wallace <vwallace@protonmail.com>
Tue, 7 Feb 2023 19:04:55 +0000 (14:04 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 14 Feb 2023 19:20:48 +0000 (14:20 -0500)
commitaa4b429eb213101f64a828dc80a6438912e8664e
treed79da9733b141a2ca415683cd7a0de3b16ef97a7
parentbe4bb58573ab6f56f363496574d64fa83074364b
test_utils: parameterize TestRouter by TestScorer

This allows us set scoring expectations and ensure in-flight htlcs are factored
into scoring
12 files changed:
lightning-invoice/src/utils.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/onion_route_tests.rs
lightning/src/ln/outbound_payment.rs
lightning/src/ln/payment_tests.rs
lightning/src/ln/shutdown_tests.rs
lightning/src/routing/gossip.rs
lightning/src/routing/router.rs
lightning/src/routing/scoring.rs
lightning/src/util/test_utils.rs