Pass effective capacity to scorer
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 22 Apr 2022 13:21:18 +0000 (08:21 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 19 May 2022 19:25:22 +0000 (14:25 -0500)
commit197cbc4d28a3c7e2b009211832d1d59ddac5ec70
tree032b041587543f6dd144358daf78efa0957f43bf
parent435a325d028adbf4b2d9c50990373827453692fb
Pass effective capacity to scorer

Scorers could benefit from having the channel's EffectiveCapacity rather
than a u64 msat value. For instance, ProbabilisticScorer can give a more
accurate penalty when given the ExactLiquidity variant. Pass a struct
wrapping the effective capacity, the proposed amount, and any in-flight
HTLC value.
lightning-invoice/src/payment.rs
lightning/src/routing/router.rs
lightning/src/routing/scoring.rs