]> git.bitcoin.ninja Git - rust-lightning/commit
Use correct penalty and CLTV delta in route hints
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 17 May 2022 21:57:55 +0000 (16:57 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 19 May 2022 19:25:22 +0000 (14:25 -0500)
commit435a325d028adbf4b2d9c50990373827453692fb
tree20a757a4f67edfa832f1a707c59b32d8daf95740
parenta190aed88afabb9a9f2c946792f38b9f661e9a64
Use correct penalty and CLTV delta in route hints

For route hints, the aggregate next hops path penalty and CLTV delta
should be computed after considering each hop rather than before.
Otherwise, these aggregate values will include values from the current
hop, too.
lightning/src/routing/router.rs