]> git.bitcoin.ninja Git - rust-lightning/commit
Score's FeeParams as passed-in params on Routefinding functions
authorhenghonglee <henghong.lee@gmail.com>
Sat, 6 May 2023 18:01:22 +0000 (11:01 -0700)
committerhenghonglee <henghong.lee@gmail.com>
Wed, 10 May 2023 19:53:42 +0000 (12:53 -0700)
commit21b0818be7c3f4b3fce24c2bd3ac0c156549f8bc
tree49dafa391bd89caea622fa14d60ba98026db4698
parent9e542ec8c778ced54bd4d792ce17e6dbda385342
Score's FeeParams as passed-in params on Routefinding functions

This PR aims to create a "stateless" scorer. Instead of passing
in fee params at construction-time, we want to parametrize the
scorer with an associated "parameter" type, which is then
passed to the router function itself, and allows passing
different parameters per route-finding call.
12 files changed:
fuzz/src/full_stack.rs
fuzz/src/router.rs
lightning-background-processor/src/lib.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/payment_tests.rs
lightning/src/ln/shutdown_tests.rs
lightning/src/routing/router.rs
lightning/src/routing/scoring.rs
lightning/src/util/test_utils.rs