]> git.bitcoin.ninja Git - rust-lightning/commit
Correctly pick middle hop to victimize
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 30 Mar 2022 18:43:45 +0000 (13:43 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 30 Mar 2022 22:42:00 +0000 (17:42 -0500)
commit30b6873d03e59fd2b329725f71e9df98eaba1c2c
tree0a65bfa3ced5c4e7ce8693f7889e9274c2fea016
parent37a947bc362afa2a6af4c0e6bf9f6c98004183df
Correctly pick middle hop to victimize

For even-length paths, preferring a later hop avoids overly limiting the
possible paths on the next iteration.
lightning/src/routing/router.rs