Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pytest: test for pay adjacent routehint crash.
When route returns a result which is too expensive, we try to figure out which hop is most expensive to exclude it for next time. If it's a single-hop route, we don't count it, since the first hop is free. That's not usually a problem, since single-hop routes can't exceed our limits (they're always "free"!). But if we are using a routehint, the total cost could exceed our limits, even if the start of the routehint is a single hop away. This reproduces that test case. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
- Loading branch information