]> git.bitcoin.ninja Git - rust-lightning/commit
Simplify and make scoring calls in `TestRouter` more complete
authorMatt Corallo <git@bluematt.me>
Wed, 6 Dec 2023 17:47:00 +0000 (17:47 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 8 Dec 2023 20:45:06 +0000 (20:45 +0000)
commit2b7d097dc76805a814eef93b4610a9eebc68e20e
tree8e72aa6325fca84d69f2f19b0472db6e78d224c7
parent6ae051694d016ebd4c4b62ae63c92765b38ff069
Simplify and make scoring calls in `TestRouter` more complete

`TestRouter` tries to make scoring calls that mimic what an actual
router would do, but the changes in f0ecc3ec73dcdb9303b1bd5ac687a36
failed to make scoring calls for private hints or if we take a
public hop for the last hop.

This fixes those regressions, though no tests currently depend on
this behavior.
lightning/src/util/test_utils.rs