]> git.bitcoin.ninja Git - rust-lightning/commit
Drop `ScoreParams` in bindings builds
authorMatt Corallo <git@bluematt.me>
Tue, 11 Jul 2023 02:00:22 +0000 (02:00 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 22 Jul 2023 01:45:40 +0000 (01:45 +0000)
commit6dcbb5ce41a52b8f01b32fac395acc98d2fe17de
treed0ab8398e2edbffdf36277027b5954c4c1f9b494
parentd3587b1e99714a67ef258f3673007888b7833eb2
Drop `ScoreParams` in bindings builds

Sadly, we can't realistically expose associated types in bindings -
not only does C not have any concept of generics or associated
types (duh), but many of the downstream languages we support don't
either.

Instead, we hard-code the scoring parameters type to
`ProbabilisticScoringFeeParams` for all scorers.
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/peer_handler.rs
lightning/src/ln/shutdown_tests.rs
lightning/src/routing/router.rs
lightning/src/routing/scoring.rs
lightning/src/util/test_utils.rs