]> git.bitcoin.ninja Git - rust-lightning/commit
Use the correct amount when scoring route hints
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 17 May 2022 21:43:36 +0000 (16:43 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 19 May 2022 19:25:22 +0000 (14:25 -0500)
commita190aed88afabb9a9f2c946792f38b9f661e9a64
tree43329910c6c34ac646fe6c3d2bcf85160ea0d695
parent22ce7d89d7816f64ef1f6cc613a386a96a0fea5e
Use the correct amount when scoring route hints

When scoring route hints, the amount passed to the scorer should include
any fees needed for subsequent hops. This worked correctly for single-
hop hints since there are no further hops, but not for multi-hint hops
(except the final one).
lightning/src/routing/router.rs