]> git.bitcoin.ninja Git - rust-lightning/commit
Hard-code scorer parameters to `ProbabilisticScoringFeeParameters`
authorMatt Corallo <git@bluematt.me>
Tue, 18 Jul 2023 19:25:52 +0000 (19:25 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 22 Jul 2023 01:55:54 +0000 (01:55 +0000)
commit71095d4c004015c7e3b6837d66a42bcc67ebc67e
tree3c344e2ae2905a0f8fd71048d507155e2bf0e5b3
parent6dcbb5ce41a52b8f01b32fac395acc98d2fe17de
Hard-code scorer parameters to `ProbabilisticScoringFeeParameters`

The scorer currently relies on an associated type for the fee
parameters. This isn't supportable at all in bindings, and for
lack of a better option we simply hard-code the parameter for all
scorers  to `ProbabilisticScoringFeeParameters`.
lightning-background-processor/src/lib.rs
lightning/src/ln/channelmanager.rs
lightning/src/routing/router.rs
lightning/src/routing/scoring.rs
lightning/src/util/test_utils.rs